Function at 0x4e9cf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x597010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a7c0
add esp, 4
mov esi, dword [ebp - 0x4c]
mov eax, dword [0x5aae58]
test eax, eax
je 0x4e9d31
mov ecx, dword [0x5aae5c]
cmp ecx, esi
jbe 0x4e9d69
jmp 0x4e9f27
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [0x5aae58], eax
mov dword [0x5aae5c], ecx
cmp ecx, esi
ja 0x4e9f27
cmp eax, esi
jb 0x4e9f27
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4e9d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x4e9f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004733d0
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call ebx
mov dword [ebp - 0x84], esp
call fcn.004733d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004733d0
push esi
call ebx
mov ebx, edi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0x57bce0
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x3c]
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x4c]
mov ecx, edi
push eax
push edx
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.004bb9c6
xor esi, esi
mov dword [ebp - 0x7c], 0
mov ecx, 0
mov dword [ebp - 0x78], 0
test al, al
je 0x4ea03c
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x7c], 0
push edi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.00464fc0
add esp, 0xc
mov ecx, 0
mov dword [ebp - 0x78], 0
test al, al
je 0x4ea025
movzx eax, byte [ebp - 0x41]
mov edx, edi
test al, al
jns 0x4e9e92
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x64]
mov ecx, edi
push eax
push edx
call fcn.00474ed0
lea eax, [ebp - 0x58]
mov ecx, edi
mov edi, eax
push eax
call fcn.00475b50
movsd xmm0, qword [ebp - 0x58]
movsd qword [ebp - 0x70], xmm0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x4d], 0
mov word [ebp - 0x58], 0
cmp byte [ebp - 0x59], 0
jns 0x4e9ed9
push dword [ebp - 0x64]
call fcn.00528424
add esp, 4
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x50], 0xffffffff
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004af0a0
add esp, 8
movzx edx, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0x58]
mov eax, edi
test dl, dl
mov dword [ebp - 0x78], ecx
cmovs eax, ecx
mov ecx, dword [ebp - 0x54]
mov edi, edx
cmovs edi, ecx
lea ebx, [ebp - 0x58]
mov dword [ebp - 0x74], ebx
js 0x4e9f2e
mov ecx, edx
lea edx, [ebp - 0x58]
cmp eax, edx
jne 0x4e9f37
jmp 0x4e9f33
xor esi, esi
jmp 0x4ea199
cmp dword [ebp - 0x78], eax
jne 0x4e9f37
cmp ecx, edi
je 0x4e9f41
lea ecx, [ebp - 0x58]
push edi
push eax
call fcn.0044c638
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x64], 0x58bfb2
sub esp, 0x1c
movq xmm0, qword [ebp - 0x64]
movq qword [esp + 8], xmm0
lea edi, [ebp - 0x58]
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
call fcn.00458ea0
add esp, 0x1c
push dword [ebp - 0x38]
lea edi, [ebp - 0x64]
push edi
call fcn.00506ad0
add esp, 8
movzx eax, byte [ebp - 0x59]
test al, al
mov ebx, dword [ebp - 0x80]
jns 0x4e9fab
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
push eax
push edi
call fcn.0044e692
cmp byte [ebp - 0x59], 0
lea edi, [ebp - 0x4c]
jns 0x4e9fc9
push dword [ebp - 0x64]
call fcn.00528424
add esp, 4
movzx eax, byte [ebp - 0x4d]
test al, al
jns 0x4e9fda
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebp - 0x74]
call fcn.004648a0
add esp, 0xc
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x5c]
cmp byte [ebp - 0x4d], 0
jns 0x4ea025
push dword [ebp - 0x58]
mov dword [ebp - 0x74], ecx
call fcn.00528424
mov ecx, dword [ebp - 0x74]
add esp, 4
cmp byte [ebp - 0x41], 0
jns 0x4ea03c
push dword [ebp - 0x4c]
mov dword [ebp - 0x74], ecx
call fcn.00528424
mov ecx, dword [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xc
push edi
push ebx
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x4ea0f7
push 0x2c
call fcn.005283f4
add esp, 4
mov esi, eax
movsd xmm0, qword [ebp - 0x4c]
movsd qword [ebp - 0x34], xmm0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
call fcn.004733d0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
call fcn.004733d0
push edi
mov dword [ebp - 0x80], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
mov dword [esi], 0x57b800
mov dword [esi + 4], 0
call fcn.004733d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x80]
mov dword [esi + 4], eax
call fcn.004733d0
push edi
call ebx
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x10], eax
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 8], xmm0
mov eax, dword [ebp - 0x74]
test eax, eax
js 0x4ea102
mov edi, dword [ebp - 0x78]
mov dword [esi + 0x14], edi
mov ecx, dword [ebp - 0x7c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
jmp 0x4ea15e
mov edi, dword [ebp - 0x78]
cmp dword [ebp - 0x74], 0
jns 0x4ea17d
jmp 0x4ea174
mov ebx, dword [ebp - 0x7c]
cmp ebx, 0xa
mov edi, dword [ebp - 0x78]
ja 0x4ea119
lea eax, [esi + 0x14]
mov byte [esi + 0x1f], bl
cmp eax, edi
jbe 0x4ea14a
jmp 0x4ea152
cmp ebx, 0x7ffffff0
jae 0x4ea1c3
mov edi, ebx
or edi, 0xf
inc edi
push edi
call fcn.005283f4
add esp, 4
mov dword [esi + 0x14], eax
or edi, 0x80000000
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], ebx
mov edi, dword [ebp - 0x78]
cmp eax, edi
ja 0x4ea152
lea ecx, [eax + ebx]
inc ecx
cmp ecx, edi
ja 0x4ea1c8
inc ebx
push ebx
push edi
push eax
call fcn.0052bc90
add esp, 0xc
mov ecx, esi
add ecx, 0x20
lea eax, [ebp - 0x70]
push eax
call fcn.00458e00
xor ebx, ebx
cmp dword [ebp - 0x74], 0
jns 0x4ea17d
push edi
call fcn.00528424
add esp, 4
cmp byte [ebp - 0x65], 0
js 0x4ea1b2
test ebx, ebx
je 0x4ea193
call fcn.004733d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, dword [ebp - 0x84]
mov edi, dword [ebp + 8]
mov dword [edi], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, edi
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x70]
call fcn.00528424
add esp, 4
test ebx, ebx
jne 0x4ea187
jmp 0x4ea193
call fcn.0053bf0b
int3