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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x28
push ebx
push ebp
push esi
xor ebp, ebp
push edi
test eax, eax
je 0x4254e8
cmp eax, 0x40
jae 0x4254e8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x3c]
mov edx, 0x5a4d
cmp word [ecx], dx
je 0x42550b
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
test eax, eax
je 0x42551c
mov edx, dword [ecx + 0x3c]
add edx, 0xf8
cmp eax, edx
jb 0x4254d6
mov edi, dword [ecx + 0x3c]
add edi, ecx
cmp dword [edi], 0x4550
jne 0x4254f6
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x4254f6
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x4254f6
movzx eax, word [edi + 6]
movzx ecx, word [edi + 0x14]
lea ecx, [ecx + edi + 0x24]
test eax, eax
je 0x42556b
mov esi, eax
mov edi, edi
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x42555d
add eax, ebx
jmp 0x42555f
add eax, edx
cmp eax, ebp
jbe 0x425565
mov ebp, eax
add ecx, 0x28
dec esi
jne 0x425550
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebp - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
jb 0x4254f6
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4255c1
push 4
push 0x3000
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4255e5
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4255f7
push 0x8000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esi + 4], ebp
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x30], edx
test eax, eax
je 0x425646
mov ecx, dword [edi + 0x54]
push ecx
call fcn.00424d80
add esp, 4
test eax, eax
je 0x4257aa
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebp
call ebx
mov ecx, dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [edi + 0x54]
push eax
push ecx
push ebx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x48]
add ebx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push esi
push edi
push ecx
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.00424da0
add esp, 0x10
test eax, eax
je 0x4257aa
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
sub eax, dword [edi + 0x34]
je 0x4256a6
push eax
mov eax, esi
call fcn.004250c0
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x4256ad
mov dword [esi + 0x18], 1
mov ebx, esi
call fcn.00425150
test eax, eax
je 0x4257aa
push esi
call fcn.00424f30
add esp, 4
test eax, eax
je 0x4257aa
mov eax, dword [edi + 0x34]
cmp eax, dword [0x4e7ecc]
je 0x4256e7
mov eax, esi
call fcn.00425080
test eax, eax
je 0x4257aa
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
xor edx, edx
cmp eax, edx
je 0x4257d9
cmp dword [esi + 0x14], edx
je 0x4257ca
cmp byte [esp + 0x54], dl
je 0x4257b9
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xa0]
mov eax, dword [esi + 4]
mov ecx, dword [ecx + 0x50]
add ecx, eax
mov dword [esp + 0x40], edx
mov dword [0x4e6dd0], eax
mov dword [0x4e6dcc], ecx
cmp dword [0x4eaeb8], edx
jne 0x425756
push str.RtlPcToFileHeader
push 0x4bbbe4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eaeb8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x40]
push edx
call fcn.00425eb0
add esp, 4
push esi
push 1
push ebp
mov edi, eax
call dword [esp + 0x1c]
mov ebp, eax
test edi, edi
je 0x425794
call fcn.00426010
push edi
mov edi, dword [esp + 0x44]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jne 0x4257b9
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004258e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
add eax, ebp
mov dword [esi + 0x2c], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
mov dword [esi + 0x2c], edx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret