Function at 0x405f80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x405faa
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406239
mov dword [ebp - 0x98], edx
mov al, byte [ebp + 0xc]
xor esi, esi
mov ebx, 0
test al, al
jne 0x406176
add ebx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [ebp - 0x44]
mov dword [eax - 0x20], edx
mov dword [eax - 0x1c], ebx
mov dword [eax - 0x18], ecx
mov dword [eax - 0x14], esi
mov dword [eax - 0x10], esi
mov dword [eax - 8], esi
mov dword [eax - 4], 0x10
mov dword [eax - 0xc], eax
mov byte [eax + 0x10], 1
lea edi, [ebp - 0x30]
mov esi, ecx
mov ecx, edi
push esi
push ebx
mov ebx, eax
call fcn.004062a0
add esp, 8
mov eax, dword [edi - 0x34]
mov esi, dword [ebp - 0x98]
mov dword [esi], eax
mov eax, dword [edi - 0x30]
mov dword [esi + 4], eax
mov eax, dword [edi - 0x2c]
mov dword [esi + 8], eax
mov eax, dword [edi - 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [edi - 0x24]
mov dword [esi + 0x10], eax
mov ecx, dword [edi - 0x1c]
mov dword [esi + 0x18], ecx
mov eax, dword [edi - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [edi - 0x20]
cmp eax, ebx
jne 0x4061c9
lea eax, [esi + 0x20]
mov dword [esi + 0x14], eax
test ecx, ecx
jg 0x4061e2
lea edx, [ebp - 0x20]
mov al, byte [edx - 0x14]
mov byte [esi + 0x30], al
mov eax, dword [edx - 0x10]
mov dword [esi + 0x34], eax
mov eax, dword [edx - 8]
mov dword [esi + 0x3c], eax
mov ecx, dword [edx - 4]
mov dword [esi + 0x40], ecx
mov edi, dword [edx - 0xc]
cmp edi, edx
jne 0x406207
lea ecx, [esi + 0x44]
mov dword [esi + 0x38], ecx
test eax, eax
jle 0x406098
lea eax, [edi + eax*8]
xor ecx, ecx
lea edx, [edi + ecx]
add edx, 8
mov ebx, dword [edx - 8]
mov dword [esi + ecx + 0x44], ebx
mov ebx, dword [edx - 4]
mov dword [esi + ecx + 0x48], ebx
add ecx, 8
cmp edx, eax
jb 0x40607a
lea ebx, [ebp - 0x44]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x34], 0
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4060f4
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x20]
cmp edi, eax
jne 0x40621b
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x40622a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x438438
call fcn.00409e46
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x40612c
lea edi, [ebp - 0x88]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.00409e46
add esp, 4
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4060c0
mov ecx, dword [0x438434]
mov dword [ebp - 0x90], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
push dword [edi]
push dword [ebp - 0x90]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add edi, 8
cmp edi, dword [ebp - 0x8c]
jne 0x40614b
mov edi, dword [ebp - 0x2c]
jmp 0x4060c0
mov dword [ebp - 0x94], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x8c], ecx
movsx ebx, al
lea eax, [ecx + ebx]
mov dword [ebp - 0x90], eax
call fcn.00408390
mov ecx, eax
mov eax, dword [ebp - 0x8c]
xor edx, edx
div ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
xor edx, edx
div ecx
cmp dword [ebp - 0x8c], eax
jne 0x406244
mov ecx, dword [ebp - 0x94]
jmp 0x405fc2
mov dword [esi + 0x14], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0x10
mov dword [ebp - 0x4c], 0
jmp 0x406045
lea edx, [ebp - 0x64]
add ecx, edx
add ecx, 0x20
lea edi, [ebp - 0x43]
cmp ecx, edi
cmova edi, ecx
sub edi, edx
add edi, 0xffffffe0
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x406045
mov dword [esi + 0x38], edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 2
mov edi, edx
jmp 0x406098
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x4060d2
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x4060dd
int3
mov ecx, dword [ebp - 0x90]
call fcn.0042ded0
test al, al
mov ecx, dword [ebp - 0x94]
jne 0x405fc2
mov eax, dword [edi]
mov esi, dword [ebp - 0x98]
mov dword [esi], eax
xor ecx, ecx
mov dword [esi + 0x18], ecx
xorps xmm0, xmm0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x1c], 0x10
lea edx, [esi + 0x20]
mov dword [esi + 0x14], edx
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], 2
lea eax, [esi + 0x44]
mov dword [esi + 0x38], eax
jmp 0x4060dd