Function at 0x40a860
Capabilities:
Get disk information
Get disk size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
push ebx
push esi
lea eax, [ebp - 0x3ac]
push edi
push eax
mov byte [ebp - 0x3b0], 0x66
mov byte [ebp - 0x206], 0
mov dword [ebp - 0x3ac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
lea edx, [ebp - 4]
mov dword [ebp - 0x28], ecx
push edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], ecx
push eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0x10
mov edx, dword [ecx + 0xa8]
push edx
call dword [0x48c900]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 0xc]
mov ecx, 0xc
lea edi, [ebp - 0x238]
mov dword [ebp - 0x23c], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040a6e0
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x206], al
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x310], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x31b5d43b
imul edi
sar edx, 0x18
mov eax, edx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
shr eax, 0x1f
add edx, eax
lea ecx, [ebp - 0x1c0]
push edx
push 0x488254
push ecx
call esi
mov eax, edi
mov ecx, 0x5265c00
cdq
idiv ecx
mov eax, 0x4a90be59
add esp, 0xc
lea ecx, [ebp - 0xf8]
mov edi, edx
imul edi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0x488254
push ecx
call esi
mov eax, edi
mov ecx, 0x36ee80
cdq
idiv ecx
mov eax, 0x45e7b273
add esp, 0xc
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0x488254
lea ecx, [ebp - 0x15c]
push ecx
call esi
add esp, 0xc
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0xf8]
lea ecx, [ebp - 0x1c0]
push edx
push eax
push ecx
lea edx, [ebp - 0x304]
push 0x488558
push edx
call esi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
add esp, 0x14
xor esi, esi
mov dword [ebp - 0x204], eax
mov dword [ebp + 0xc], ebx
xor edi, edi
mov cl, bl
lea edx, [ebp - 0x10]
add cl, 0x42
push edx
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], 0x5c
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40aa10
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40aa10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add esi, edx
mov ecx, 0x1e
adc edi, eax
mov eax, esi
mov edx, edi
call fcn.00462b10
mov dword [ebp + 0xc], eax
inc ebx
cmp ebx, 0x1a
jl 0x40a9bc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ecx
fild qword [ebp - 0x30]
call fcn.00462600
lea edx, [ebp - 0x94]
push str.kernel32.dll
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x94], 0x40
mov dword [ebp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x88]
mov ecx, 0x14
call fcn.00462b10
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x200]
push 0x20
push eax
push str.bj2012
call fcn.0040a720
lea ecx, [ebp - 0x1e0]
push 0x20
push ecx
push str.bj2012
call fcn.0040a7c0
mov ecx, dword [ebp + 8]
add esp, 0x18
lea edx, [ebp - 0x3b0]
push 0x1f0
push edx
call fcn.004034c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret