Function at 0x529c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c14e5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x38]
mov esi, dword [edi + 0x14]
test ecx, ecx
jne 0x529c7e
lea eax, [ebp - 0x20]
push 5
push eax
call fcn.004f6fe0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x529d16
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
jne 0x529ca8
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x529ca8
lea eax, [ebp - 0x20]
push 0x57
push eax
call fcn.004f6fe0
add esp, 8
push eax
mov dword [ebp - 4], 1
push 8
jmp 0x529d19
mov al, byte [ebp + 0x18]
xor ebx, ebx
and al, 1
je 0x529cb8
mov ebx, 1
jmp 0x529ccf
test cl, 2
je 0x529cc4
mov ebx, 2
jmp 0x529ccf
and cl, 1
mov eax, 4
cmovne ebx, eax
cmp dword [edi + 0x80], 0
jne 0x529da8
mov ecx, dword [edi + 0x7c]
cmp ecx, 0xffffffff
jne 0x529d4f
mov eax, dword [edi + 0x78]
test eax, eax
je 0x529d01
push eax
call fcn.0059d3f8
push eax
call fcn.0059d0d2
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
jne 0x529d4f
lea eax, [ebp - 0x20]
push 5
push eax
call fcn.004f6fe0
add esp, 8
mov dword [ebp - 4], 2
push eax
push 0xd
mov ecx, esi
call fcn.005020a0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x529e79
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x529e79
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
jmp 0x529e79
test byte [edi + 0x38], 2
mov eax, 0
push 0
setne al
push 0
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x80], eax
test eax, eax
jne 0x529da8
lea eax, [ebp - 0x20]
push 0xffffffffffffffff
push eax
call fcn.004f6fe0
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.005020a0
lea ecx, [ebp - 0x20]
call fcn.004019e0
jmp 0x529e79
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
dec edx
mov eax, ecx
and eax, edx
mov dword [ebp - 0x14], eax
je 0x529dc6
not edx
and ecx, edx
add eax, dword [ebp + 0x10]
push eax
push ecx
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x80]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x529e0f
mov ebx, dword [ebp - 0x14]
lea ecx, [edi + 0x84]
lea esi, [eax + ebx]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
call fcn.005289a0
mov dword [eax], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
cmp eax, 5
je 0x529e3e
lea eax, [ebp - 0x2c]
push eax
call fcn.004f6fe0
add esp, 8
push eax
push 8
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.005020a0
lea ecx, [ebp - 0x2c]
jmp 0x529e5e
lea eax, [ebp - 0x20]
push eax
call fcn.004f6fe0
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.005020a0
lea ecx, [ebp - 0x20]
call fcn.004019e0
push dword [edi + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x80], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14