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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, 0x5a4d
xor ebx, ebx
cmp word [0x100198f8], ax
je 0x10003279
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [0x10019934]
lea ecx, [edi + 0xf8]
cmp ecx, 0x17b49f
jbe 0x1000329e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x100198f8], 0x4550
lea edi, [edi + 0x100198f8]
mov dword [ebp - 8], edi
jne 0x100032c4
mov edx, 0x14c
cmp word [edi + 4], dx
jne 0x100032c4
test byte [edi + 0x38], 1
je 0x100032d7
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 0x14]
lea ecx, [eax + edi + 0x24]
movzx eax, word [edi + 6]
push esi
test eax, eax
je 0x1000330c
mov esi, eax
lea ebx, [ebx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x100032fe
add eax, dword [edi + 0x38]
jmp 0x10003300
add eax, edx
cmp eax, ebx
jbe 0x10003306
mov ebx, eax
add ecx, 0x28
dec esi
jne 0x100032f0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x28]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebx - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
je 0x10003345
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x34]
push 4
push 0x3000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10003372
push 4
push 0x3000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10003396
push 0x40
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 0x100033a7
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ebx
movzx edx, word [edi + 0x16]
shr edx, 0xd
and edx, 1
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], 0x100031d0
mov dword [esi + 0x20], 0x100031f0
mov dword [esi + 0x24], 0x10003210
mov dword [esi + 0x28], 0x10003220
mov dword [esi + 0x2c], 0x10003240
mov dword [esi + 0x34], 0
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x54]
push ecx
call fcn.10002c60
add esp, 4
test eax, eax
je 0x100034a7
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [edi + 0x54]
push edx
push 0x100198f8
push eax
mov dword [ebp - 4], eax
call fcn.10008960
mov eax, dword [0x10019934]
add eax, dword [ebp - 4]
push edi
mov dword [esi], eax
mov edi, esi
mov dword [eax + 0x34], ebx
call fcn.10002c80
add esp, 0x10
test eax, eax
je 0x100034a7
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x34]
je 0x10003458
push eax
mov eax, esi
call fcn.10002fb0
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x1000345f
mov dword [esi + 0x18], 1
call fcn.10003050
test eax, eax
je 0x100034a7
push esi
call fcn.10002e30
add esp, 4
test eax, eax
je 0x100034a7
mov eax, esi
call fcn.10002f70
test eax, eax
je 0x100034a7
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x100034d1
add eax, ebx
cmp dword [esi + 0x14], 0
je 0x100034c5
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x100034b5
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10003680
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], 0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret