Function at 0x466e60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x3c
mov esi, dword [ebp + 0x10]
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [esp], ecx
mov dword [ecx + 4], eax
mov ebx, dword [ebp + 0xc]
mov al, byte [0x5178d0]
test al, al
je 0x467029
mov edi, dword [0x518b44]
lea eax, [ebx + esi]
add eax, 0xffffffff
xor esi, esi
xor edx, edx
div edi
mov ecx, eax
mov eax, ebx
xor edx, edx
div edi
sub ecx, eax
inc ecx
mov dword [esp + 4], ecx
je 0x466fb5
mov ebx, eax
mov eax, dword [esp]
add eax, 4
mov dword [esp + 0xc], eax
imul ebx, edi
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 8], edi
jmp 0x466f16
mov ecx, dword [edx + 4]
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], ebx
add dword [edx + 8], 1
add esi, 1
mov edi, dword [esp + 8]
add ebx, edi
cmp esi, dword [esp + 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x466fb5
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x14]
push edi
push ebx
call eax
test eax, eax
je 0x466f50
mov edi, dword [esp + 0x10]
mov edx, dword [esp]
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
jne 0x466ef0
mov ecx, dword [esp + 0xc]
push 1
call fcn.0040d4e0
test al, al
je 0x466fd5
mov edx, dword [esp]
mov eax, dword [edx + 8]
jmp 0x466ef0
mov dword [esp + 0x10], 0
mov al, byte [0x5178d0]
test al, al
mov ecx, dword [esp]
je 0x467069
mov eax, dword [ecx + 8]
mov dword [esp + 4], eax
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x466fab
mov eax, dword [0x518b44]
mov dword [esp + 8], eax
mov eax, dword [esp]
mov ebx, dword [eax + 4]
shl dword [esp + 4], 3
xor edi, edi
nop
lea eax, [esp + 0x14]
push eax
push dword [ebx + edi]
push dword [esp + 0x10]
push dword [ebx + edi + 4]
call esi
add edi, 8
cmp dword [esp + 4], edi
jne 0x466f90
mov eax, dword [esp]
mov dword [eax + 8], 0
mov eax, dword [esp + 0x38]
xor eax, ebp
mov ecx, dword [0x4f62d0]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x467064
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov al, byte [0x5178d0]
test al, al
mov ecx, dword [esp]
je 0x4670ac
mov eax, dword [ecx + 8]
mov dword [esp + 4], eax
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x466fab
mov eax, dword [0x518b44]
mov dword [esp + 8], eax
mov eax, dword [esp]
mov ebx, dword [eax + 4]
shl dword [esp + 4], 3
xor edi, edi
lea eax, [esp + 0x14]
push eax
push dword [ebx + edi]
push dword [esp + 0x10]
push dword [ebx + edi + 4]
call esi
add edi, 8
cmp dword [esp + 4], edi
jne 0x46700c
jmp 0x466fab
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x466ea8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x466ea8
call fcn.00468008
push 0x5178d0
call fcn.004c3610
mov ecx, dword [esp + 4]
add esp, 4
test eax, eax
je 0x466f68
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
mov ecx, dword [esp + 4]
add esp, 4
jmp 0x466f68
push 0x5178d0
call fcn.004c3610
mov ecx, dword [esp + 4]
add esp, 4
test eax, eax
je 0x466fe5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
mov ecx, dword [esp + 4]
add esp, 4
jmp 0x466fe5