Function at 0x61c264
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x61c483
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 8]
mov edi, eax
cmp word [edi], 0x5a4d
je 0x61c2a8
push 0xc1
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
mov ebx, dword [edi + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x61c2cc
push 0xc1
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
cmp word [ebx + 4], 0x14c
je 0x61c2eb
push 0xc1
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
test byte [ebx + 0x38], 1
je 0x61c308
push 0xc1
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
push 4
push 0x3000
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
test esi, esi
jne 0x61c34e
push 4
push 0x3000
mov eax, dword [ebx + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
test esi, esi
jne 0x61c34e
push 0xe
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
push 0x18
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x61c387
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree
push 0xe
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], esi
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetNativeSystemInfo
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x14], edx
push 4
push 0x1000
mov eax, dword [ebx + 0x54]
push eax
push esi
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
mov ecx, edi
xchg ecx, eax
call fcn.00407830
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0061bc60
test al, al
jne 0x61c3e2
call fcn.0061bc18
mov edi, esi
mov eax, edi
sub eax, dword [ebx + 0x34]
mov ebx, eax
test ebx, ebx
je 0x61c401
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0061bfdc
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x11], al
jmp 0x61c408
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.0061c0bc
test al, al
jne 0x61c41a
call fcn.0061bc18
mov eax, dword [ebp - 0xc]
call fcn.0061be1c
test al, al
jne 0x61c42b
call fcn.0061bc18
mov eax, dword [ebp - 0xc]
call fcn.0061bf74
test al, al
jne 0x61c43c
call fcn.0061bc18
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x61c473
add eax, esi
mov ebx, eax
push 0
push 1
push edi
call ebx
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x61c46c
push 0x45a
call sub.kernel32.dll_SetLastError
call fcn.0061bc18
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61c49d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4