Function at 0x40b380
Capabilities:
Get disk size
Get geographical location
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x310], ecx
mov edx, dword [ebp - 0x310]
sub edx, 1
mov dword [ebp - 0x310], edx
cmp dword [ebp - 0x310], 0x64
ja case.0x40b3bd.1
mov eax, dword [ebp - 0x310]
movzx ecx, byte [eax + 0x40b7da]
jmp dword [ecx*4 + 0x40b7aa]
mov edx, dword [ebp + 0xc]
mov dword [edx], 6
jmp case.0x40b3bd.1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp case.0x40b3bd.1
mov dword [ebp - 0x218], 0x94
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x314], edx
cmp dword [ebp - 0x314], 0
je 0x40b417
cmp dword [ebp - 0x314], 2
je 0x40b422
jmp 0x40b42d
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x40b436
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 4
jmp 0x40b436
mov edx, dword [ebp + 0xc]
mov dword [edx], 3
jmp case.0x40b3bd.1
mov dword [ebp - 0x218], 0x94
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x208], 2
jne 0x40b4b6
push 0x50cb14
push 0x50cb28
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b4b6
push 0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x178]
push edx
push 0
call dword [ebp - 8]
mov eax, dword [ebp - 0x178]
shr eax, 0x14
mov ecx, dword [ebp - 0x174]
shl ecx, 0xc
or eax, ecx
cmp eax, 0x800
jb 0x40b4b6
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x7ffb0000
jmp case.0x40b3bd.1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x308]
push ecx
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x30c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x30c]
imul ecx, dword [ebp - 0x164]
imul ecx, dword [ebp - 0x308]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp case.0x40b3bd.1
push 4
lea ecx, [ebp - 4]
push ecx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movsx edx, byte [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp case.0x40b3bd.1
push str.GetDiskFreeSpaceExA
push 0x50cb4c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b56f
push 0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x178]
push edx
push 0
call dword [ebp - 8]
mov eax, dword [ebp - 0x178]
shr eax, 0x14
mov ecx, dword [ebp - 0x174]
shl ecx, 0xc
or eax, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x40b5af
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x308]
push ecx
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x30c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x30c]
imul ecx, dword [ebp - 0x164]
imul ecx, dword [ebp - 0x308]
shr ecx, 0x14
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
jmp case.0x40b3bd.1
push 2
lea eax, [ebp - 4]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movsx ecx, byte [ebp - 4]
sub ecx, 0x31
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
jmp case.0x40b3bd.1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20
push str.IsWow64Process
push 0x50cb6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x304], eax
cmp dword [ebp - 0x304], 0
je 0x40b637
lea ecx, [ebp - 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x304]
cmp dword [ebp - 0x168], 0
je 0x40b637
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x40
jmp case.0x40b3bd.1
push 0x104
lea eax, [ebp - 0x160]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4c], eax
push 0
lea edx, [ebp - 0x16c]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
mov edx, dword [ebp - 0xc]
add edx, 0x18
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x16c]
push ecx
push 0xe0
lea edx, [ebp - 0x300]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x2bc]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp case.0x40b3bd.1
push 4
lea ecx, [ebp - 4]
push ecx
push 0x100a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [ebp - 4]
push edx
call fcn.00436520
add esp, 4
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
sub ecx, 1
mov dword [ebp - 0x318], ecx
cmp dword [ebp - 0x318], 0x29
ja case.0x40b733.1
mov edx, dword [ebp - 0x318]
movzx eax, byte [edx + 0x40b867]
jmp dword [eax*4 + 0x40b83f]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 4
jmp case.0x40b3bd.1
mov edx, dword [ebp + 0xc]
mov dword [edx], 5
jmp case.0x40b3bd.1
mov eax, dword [ebp + 0xc]
mov dword [eax], 6
jmp case.0x40b3bd.1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 7
jmp case.0x40b3bd.1
mov edx, dword [ebp + 0xc]
mov dword [edx], 8
jmp case.0x40b3bd.1
mov eax, dword [ebp + 0xc]
mov dword [eax], 9
jmp case.0x40b3bd.1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xa
jmp case.0x40b3bd.1
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xf
jmp case.0x40b3bd.1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x15
jmp case.0x40b3bd.1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x16
mov esp, ebp
pop ebp
ret