Function at 0x417fec
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0xb8
lea ebp, [esp - 4]
mov eax, dword [0x485df0]
xor eax, ebp
mov dword [ebp + 0xb8], eax
push 0x44
mov eax, 0x4643c6
call fcn.0043e9db
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
cmp dword [esi + 0xc], ebx
jne 0x418050
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x418049
test byte [eax + 0x1c], 1
je 0x418049
cmp byte [eax + 0x19], 2
jb 0x418049
push 0x474218
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
add esp, 0x10
xor eax, eax
jmp 0x4183c9
mov ecx, dword [esi + 8]
mov edi, dword [ebp + 0xc4]
cmp ecx, edi
jne 0x418092
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x41808a
test byte [eax + 0x1c], 1
je 0x41808a
cmp byte [eax + 0x19], 3
jb 0x41808a
push 0x474218
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
add esp, 0x10
mov eax, dword [esi + 0xc]
jmp 0x4183c9
mov eax, dword [esi + 4]
dec eax
dec eax
je 0x418349
dec eax
je 0x4182b2
dec eax
je 0x41826a
dec eax
je 0x4180f3
dec eax
je 0x418349
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x4183c7
test byte [eax + 0x1c], 1
je 0x4183c7
cmp byte [eax + 0x19], 2
jb 0x4183c7
push 0x474218
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
add esp, 0x10
jmp 0x4183c7
cmp edi, 0x80
jbe 0x418265
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x3c]
call fcn.00424050
and dword [ebp - 4], 0
push edi
mov byte [ebp - 4], 1
call fcn.0043fb0f
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x418220
lea ecx, [ebp - 0x50]
call fcn.00417963
push 0x47c34c
lea eax, [ebp - 0x50]
push eax
call fcn.0043dbf5
push 0x13
lea ecx, [ebp - 0x3c]
call fcn.00424026
push str.std::bad_alloc
lea ecx, [ebp - 0x3c]
call fcn.00459ee2
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004240a8
push 0x47422c
lea ecx, [ebp - 0x3c]
call fcn.00424012
push 0x175
lea ecx, [ebp - 0x3c]
call fcn.0042401c
lea ecx, [ebp - 0x3c]
call fcn.00459f18
push eax
lea ecx, [ebp - 0x3c]
call fcn.00459ede
push eax
call fcn.004627e5
pop ecx
pop ecx
mov eax, 0x418217
ret
lea ecx, [ebp - 0x3c]
call fcn.004249cc
test al, al
je 0x418234
lea eax, [esi + 0x10]
mov dword [esi + 0xc], eax
jmp 0x41825b
push edi
push 0
push dword [esi + 0xc]
mov dword [esi + 4], 2
mov dword [esi + 8], edi
call fcn.0043f490
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.0043ee10
add esp, 0x18
lea ecx, [ebp - 0x3c]
call fcn.00424030
jmp 0x4182aa
mov dword [esi + 8], edi
jmp 0x4182aa
mov ecx, dword [0x4874d0]
cmp ecx, ebx
jne 0x418285
push 0x4874cc
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x4874d0]
xor edx, edx
mov eax, edi
div ecx
imul eax, ecx
cmp dword [esi + 8], eax
jbe 0x418349
xor ebx, ebx
cmp ebx, edx
sbb edx, edx
and edx, ecx
add edx, eax
cmp edx, dword [esi + 8]
jb 0x418349
mov ebx, dword [esi + 0xc]
jmp 0x4183c7
push edi
push dword [esi + 0xc]
cmp edi, 0x80
jbe 0x41831c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x418305
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x4183c7
test byte [eax + 0x1c], 1
je 0x4183c7
cmp byte [eax + 0x19], 2
jb 0x4183c7
push 0x474218
push 0x14
jmp 0x4180e0
push ebx
push 0
mov dword [esi + 0xc], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov dword [esi + 8], eax
jmp 0x4183c7
lea ebx, [esi + 0x10]
push ebx
mov dword [esi + 4], 5
mov dword [esi + 8], edi
call fcn.0043ee10
add esp, 0xc
push dword [esi + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xc], ebx
jmp 0x4183c7
lea ecx, [ebp]
call fcn.00417943
push edi
push dword [esi + 4]
lea ecx, [ebp]
call fcn.00417dcc
test eax, eax
jne 0x418390
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x4183b8
test byte [eax + 0x1c], 1
je 0x4183b8
cmp byte [eax + 0x19], 2
jb 0x4183b8
push 0x474218
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
add esp, 0x10
jmp 0x4183b8
mov eax, dword [esi + 8]
cmp dword [ebp + 8], eax
jae 0x41839b
mov eax, dword [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [ebp + 0xc]
call fcn.0043ee10
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00417f65
mov ebx, dword [esi + 0xc]
lea ecx, [ebp]
mov dword [ebp], 0x474228
call fcn.0041797c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.0043e999
add ebp, 0xbc
leave
ret 4