Function at 0x53044fc
Capabilities:
Get system information on windows

Disassembly:
push 0x108
mov eax, 0x53e7614
call fcn.053519dc
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd0], edi
cmp dword [esi + 0xc], ebx
jne 0x5304557
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x5304550
test byte [eax + 0x1c], 1
je 0x5304550
cmp byte [eax + 0x19], 2
jb 0x5304550
push 0x53f2624
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052e5970
add esp, 0x10
xor eax, eax
jmp 0x53049f5
mov ecx, dword [esi + 8]
cmp ecx, edi
jne 0x5304593
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x530458b
test byte [eax + 0x1c], 1
je 0x530458b
cmp byte [eax + 0x19], 3
jb 0x530458b
push 0x53f2624
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052e5970
add esp, 0x10
mov eax, dword [esi + 0xc]
jmp 0x53049f5
mov eax, dword [esi + 4]
dec eax
dec eax
je 0x53048f8
dec eax
je 0x530483d
dec eax
je 0x53047f4
dec eax
je 0x53045f4
dec eax
je 0x53048f8
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x53049f3
test byte [eax + 0x1c], 1
je 0x53049f3
cmp byte [eax + 0x19], 2
jb 0x53049f3
push 0x53f2624
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052e5970
add esp, 0x10
jmp 0x53049f3
cmp edi, 0x80
jbe 0x53047ef
mov dword [ebp - 0xd4], ecx
lea ecx, [ebp - 0x100]
call fcn.05302607
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push edi
mov byte [ebp - 4], 2
call fcn.0532b864
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x5304661
push ebx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xdc], str.bad_allocation
call fcn.05350503
push 0x540efd0
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.05350eca
mov dword [ebp - 4], ebx
jmp 0x53046f5
lea ecx, [ebp - 0x100]
call fcn.053025af
test al, al
je 0x53047a8
lea eax, [esi + 0x10]
mov dword [esi + 0xc], eax
jmp 0x53047e2
push edi
push 0
push dword [esi + 0xc]
mov dword [esi + 4], 2
mov dword [esi + 8], edi
call fcn.05351b20
mov eax, dword [esi]
add esp, 0xc
push dword [esi + 8]
mov ecx, esi
push dword [esi + 0xc]
call dword [eax + 4]
push dword [ebp - 0xd4]
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.05353940
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.053025c5
jmp 0x5304835
mov dword [esi + 8], edi
jmp 0x5304835
mov ecx, dword [0x541bf1c]
cmp ecx, ebx
jne 0x530480f
push 0x541bf18
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x541bf1c]
xor edx, edx
mov eax, edi
div ecx
xor ebx, ebx
imul eax, ecx
cmp ebx, edx
sbb edx, edx
and edx, ecx
mov ecx, dword [esi + 8]
add edx, eax
cmp ecx, eax
jbe 0x53048f8
cmp edx, ecx
jb 0x53048f8
mov ebx, dword [esi + 0xc]
jmp 0x53049f3
push edi
push dword [esi + 0xc]
cmp edi, 0x80
jbe 0x53048c8
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 0x5304890
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x53049f3
test byte [eax + 0x1c], 1
je 0x53049f3
cmp byte [eax + 0x19], 2
jb 0x53049f3
push 0x53f2624
push 0x15
jmp 0x53045e1
mov eax, dword [esi + 8]
push ebx
push 0
mov dword [esi + 0xc], ebx
mov dword [ebp - 0xd0], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edx, dword [esi]
mov dword [esi + 8], eax
sub eax, dword [ebp - 0xd0]
mov ecx, esi
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0xd0]
push eax
call dword [edx + 4]
jmp 0x53049f3
lea ebx, [esi + 0x10]
push ebx
mov dword [esi + 4], 5
mov dword [esi + 8], edi
call fcn.05353940
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 0x53049f3
lea ecx, [ebp - 0xcc]
call fcn.05303c42
and dword [ebp - 4], 0
cmp dword [esi + 4], 6
jne 0x5304955
push dword [esi + 0x94]
lea ecx, [ebp - 0xcc]
push dword [esi + 0x90]
call fcn.05303df2
test eax, eax
jne 0x5304955
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x53049de
test byte [eax + 0x1c], 1
je 0x53049de
cmp byte [eax + 0x19], 2
jb 0x53049de
push 0x53f2624
push 0x13
jmp 0x5304987
push edi
push dword [esi + 4]
lea ecx, [ebp - 0xcc]
call fcn.0530428b
test eax, eax
jne 0x5304997
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x53049de
test byte [eax + 0x1c], 1
je 0x53049de
cmp byte [eax + 0x19], 2
jb 0x53049de
push 0x53f2624
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.052e5970
add esp, 0x10
jmp 0x53049de
push dword [ebp - 0xc4]
mov eax, dword [esi]
push dword [ebp - 0xc0]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 8]
cmp dword [ebp - 0xc4], eax
jae 0x53049bb
mov eax, dword [ebp - 0xc4]
push eax
push dword [esi + 0xc]
push dword [ebp - 0xc0]
call fcn.05353940
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
call fcn.05304427
mov ebx, dword [esi + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x53f2634
call fcn.05303d39
mov eax, ebx
call fcn.05351a38
ret 4