Function at 0x4b42f0
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 [0x5f3024]
xor ecx, ebp
mov dword [esp + 0x78], ecx
lea esi, [esp + 0x38]
mov dword [esi], eax
push esi
call fcn.004c5b20
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x608e2c]
test eax, eax
je 0x4b4333
mov ecx, dword [0x608e30]
jmp 0x4b4363
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 [0x608e2c], eax
mov dword [0x608e30], ecx
cmp ecx, esi
ja 0x4b4568
cmp eax, esi
jb 0x4b4568
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4b4568
lea ecx, [esp + 0x50]
push ecx
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4b439f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4b4568
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
call fcn.004cfe10
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
mov dword [esp + 0x10], esp
call fcn.004cfe10
call esi
mov edi, eax
call fcn.004cfe10
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.004cecb0
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], fcn.00541730
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.0048a9c0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
test al, al
je 0x4b449a
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.004605a0
add esp, 0xc
mov dword [esp], 0
mov dword [esp + 8], 0
test al, al
jne 0x4b45c4
cmp byte [esp + 0x43], 0
jns 0x4b449a
push dword [esp + 0x38]
call fcn.0050d52e
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00468680
push 0xc
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x4b4570
push 0x2c
call fcn.0050d4fe
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.004cfe10
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, edi
mov edi, eax
call fcn.004cfe10
push edi
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
mov dword [ebx], fcn.004b4710
mov dword [ebx + 4], 0
call fcn.004cfe10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], esi
call fcn.004cfe10
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 0x4b46ef
lea ecx, [ebx + 0x14]
push dword [esp + 4]
push dword [esp + 4]
call fcn.00450550
mov ecx, ebx
add ecx, 0x20
lea eax, [esp + 0x14]
push eax
call fcn.004cecd0
xor edi, edi
jmp 0x4b4576
mov dword [ebx], 0
jmp 0x4b45af
mov esi, dword [esp + 8]
xor ebx, ebx
mov dword [esp + 0x50], ebx
test esi, esi
jns 0x4b4589
push dword [esp]
call fcn.0050d52e
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004ceef0
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4b45a5
call fcn.004cfe10
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.0050db32
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 0x4b45d7
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
jmp 0x4b45dc
and eax, 0x7f
mov edx, edi
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.004cedc0
lea ebx, [esp + 0x2c]
lea ecx, [esp + 0x20]
push ebx
call fcn.004cf030
lea ecx, [esp + 0x14]
push ebx
call fcn.00455800
mov ecx, ebx
call fcn.004ceef0
lea ecx, [esp + 0x20]
call fcn.004ceef0
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.0046ab60
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4b4637
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x4b463c
and eax, 0x7f
mov ecx, ebx
push ebx
push 3
push 0x5e7bf8
push eax
push ecx
call fcn.00468d00
add esp, 0x14
push dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
call fcn.004689d0
add esp, 8
movzx eax, byte [esp + 0x2b]
test al, al
jns 0x4b4672
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
jmp 0x4b4679
and eax, 0x7f
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push edx
call fcn.00451980
cmp byte [esp + 0x2b], 0
jns 0x4b4697
push dword [esp + 0x20]
call fcn.0050d52e
add esp, 4
movzx eax, byte [esp + 0x37]
test al, al
jns 0x4b46aa
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x4b46b1
and eax, 0x7f
lea ecx, [esp + 0x2c]
lea ebx, [esp + 0x20]
push eax
push ecx
push ebx
call fcn.004d9ad0
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 0x4b4487
push dword [esp + 0x2c]
call fcn.0050d52e
add esp, 4
jmp 0x4b4487
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 0x4b4555