Function at 0x4a7d50
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x59d024]
xor ecx, ebp
mov dword [esp + 0x78], ecx
lea esi, [esp + 0x38]
mov dword [esi], eax
push esi
call fcn.004ab010
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x5b274c]
test eax, eax
je 0x4a7d93
mov ecx, dword [0x5b2750]
jmp 0x4a7dc3
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x50]
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [edi + 0x20], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [0x5b274c], eax
mov dword [0x5b2750], ecx
cmp ecx, esi
ja 0x4a7fc8
cmp eax, esi
jb 0x4a7fc8
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a7fc8
lea ecx, [esp + 0x50]
push ecx
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4a7dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a7fc8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
call fcn.004b4480
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
mov dword [esp + 0x10], esp
call fcn.004b4480
call esi
mov edi, eax
call fcn.004b4480
push edi
call ebx
xor esi, esi
dec esi
lea ecx, [esp + 0x14]
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
call fcn.004b3320
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
lea eax, [esp + 0x4c]
mov dword [eax], esi
xor ecx, ecx
lea edx, [esp + 0x48]
mov dword [edx], ecx
lea edi, [esp + 0x44]
mov dword [edi], ecx
lea ecx, [esp + 0x38]
mov dword [ecx], 0x584050
mov ebx, dword [esp + 0xc]
mov dword [ecx + 4], ebx
push edi
mov edi, ecx
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004946a0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
test al, al
je 0x4a7efa
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 4], 0
mov dword [esp + 0x40], eax
push edi
push dword [esp + 0x48]
push dword [esp + 0x50]
call fcn.00477560
add esp, 0xc
mov dword [esp], 0
mov dword [esp + 8], 0
test al, al
jne 0x4a8024
cmp byte [esp + 0x43], 0
jns 0x4a7efa
push dword [esp + 0x38]
call fcn.004eca8e
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0047d720
push 0xc
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x4a7fd0
push 0x2c
call fcn.004eca5e
add esp, 4
mov ebx, eax
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
call fcn.004b4480
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, edi
mov edi, eax
call fcn.004b4480
push edi
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
mov dword [ebx], fcn.004a8170
mov dword [ebx + 4], 0
call fcn.004b4480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], esi
call fcn.004b4480
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x10], eax
movq xmm0, qword [esp + 0x50]
movq qword [ebx + 8], xmm0
mov esi, dword [esp + 8]
test esi, esi
jns 0x4a814f
lea ecx, [ebx + 0x14]
push dword [esp + 4]
push dword [esp + 4]
call fcn.00467f20
mov ecx, ebx
add ecx, 0x20
lea eax, [esp + 0x14]
push eax
call fcn.004b3340
xor edi, edi
jmp 0x4a7fd6
mov dword [ebx], 0
jmp 0x4a800f
mov esi, dword [esp + 8]
xor ebx, ebx
mov dword [esp + 0x50], ebx
test esi, esi
jns 0x4a7fe9
push dword [esp]
call fcn.004eca8e
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004b3560
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4a8005
call fcn.004b4480
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov dword [ebx], eax
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esp + 0x43]
test al, al
jns 0x4a8037
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
jmp 0x4a803c
and eax, 0x7f
mov edx, edi
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.004b3430
lea ebx, [esp + 0x2c]
lea ecx, [esp + 0x20]
push ebx
call fcn.004b36a0
lea ecx, [esp + 0x14]
push ebx
call fcn.0046d000
mov ecx, ebx
call fcn.004b3560
lea ecx, [esp + 0x20]
call fcn.004b3560
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.00480ed0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4a8097
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x4a809c
and eax, 0x7f
mov ecx, ebx
push ebx
push 3
push 0x5948e6
push eax
push ecx
call fcn.0047e450
add esp, 0x14
push dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
call fcn.0047dbf0
add esp, 8
movzx eax, byte [esp + 0x2b]
test al, al
jns 0x4a80d2
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
jmp 0x4a80d9
and eax, 0x7f
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push edx
call fcn.004691c0
cmp byte [esp + 0x2b], 0
jns 0x4a80f7
push dword [esp + 0x20]
call fcn.004eca8e
add esp, 4
movzx eax, byte [esp + 0x37]
test al, al
jns 0x4a810a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x4a8111
and eax, 0x7f
lea ecx, [esp + 0x2c]
lea ebx, [esp + 0x20]
push eax
push ecx
push ebx
call fcn.004bd370
add esp, 0xc
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], eax
cmp byte [esp + 0x37], 0
jns 0x4a7ee7
push dword [esp + 0x2c]
call fcn.004eca8e
add esp, 4
jmp 0x4a7ee7
mov eax, dword [esp]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
jmp 0x4a7fb5