Function at 0x5b2390
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x5b25e3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x5b25fc
call fcn.005aea34
lea eax, [ebp - 0x48]
call fcn.005aed10
lea eax, [ebp - 0x48]
mov edx, 0x5b261c
call fcn.00404f9c
mov eax, dword [ebp - 0x48]
call fcn.00405194
push eax
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x5b25a7
push 0x5b262c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x5b24aa
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xffff
call dword [ebp - 8]
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x5b24aa
mov eax, dword [ebp - 0xc]
call fcn.00402e64
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0xffff
call dword [ebp - 8]
test eax, eax
je 0x5b24a2
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp word [eax], 0
jne 0x5b2491
mov eax, dword [ebp - 0x18]
add eax, 0x20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx edi, word [eax + 0x1e]
dec edi
test edi, edi
jb 0x5b2491
inc edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.005b2368
add ebx, eax
mov eax, dword [ebp - 0x20]
add eax, 0xc
mov dword [ebp - 0x20], eax
dec edi
jne 0x5b2479
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jb 0x5b2442
mov eax, dword [ebp - 0x10]
call fcn.00402e94
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x5b2658
call fcn.005aea90
test ebx, ebx
jne 0x5b258b
push 0x5b2674
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x5b2581
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
call dword [ebp - 4]
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x5b258b
mov eax, dword [ebp - 0xc]
call fcn.00402e64
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 4]
test eax, eax
je 0x5b2577
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x5b256c
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x5b269c
call fcn.005aea90
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0
jne 0x5b2568
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.005b2368
add ebx, eax
add dword [ebp - 0x1c], 0x18
mov eax, dword [ebp - 0x1c]
add eax, 0x18
cmp eax, dword [ebp - 0xc]
jbe 0x5b251d
mov eax, dword [ebp - 0x10]
call fcn.00402e94
jmp 0x5b258b
mov eax, 0x5b26b4
call fcn.005aeb90
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x5b26e8
call fcn.005aea90
push esi
call sub.kernel32.dll_FreeLibrary_1
test ebx, ebx
jne 0x5b25b7
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x5b270c
call fcn.005aea90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b25ea
lea eax, [ebp - 0x48]
call fcn.00404cd4
ret