Function at 0x1000f420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp ecx, 0x40
jae 0x1000f440
push 0xd
call dword [0xe73214]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
cmp word [eax], dx
je 0x1000f45f
push 0xc1
call dword [0xe73214]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
lea edx, [edi + 0xf8]
cmp ecx, edx
jae 0x1000f47d
push 0xd
call dword [0xe73214]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add edi, eax
cmp dword [edi], 0x4550
mov dword [ebp - 8], edi
jne 0x1000f49b
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x1000f49b
test byte [edi + 0x38], 1
je 0x1000f4ae
push 0xc1
call dword [0xe73214]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 6]
movzx ecx, word [edi + 0x14]
push esi
lea ecx, [ecx + edi + 0x24]
test eax, eax
je 0x1000f4dd
mov esi, eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x1000f4cf
add eax, dword [edi + 0x38]
jmp 0x1000f4d1
add eax, edx
cmp eax, ebx
jbe 0x1000f4d7
mov ebx, eax
add ecx, 0x28
dec esi
jne 0x1000f4c1
lea edx, [ebp - 0x2c]
push edx
call dword [0xe73210]
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 0x1000f516
push 0xc1
call dword [0xe73214]
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 [0xe732c0]
mov ebx, eax
test ebx, ebx
jne 0x1000f543
push 4
push 0x3000
push esi
push eax
call dword [0xe732c0]
mov ebx, eax
test ebx, ebx
je 0x1000f567
push 0x40
push 8
call dword [0xe730c0]
push eax
call dword [0xe73264]
mov esi, eax
test esi, esi
jne 0x1000f578
push 0x8000
push eax
push ebx
call dword [0xe7321c]
push 0xe
call dword [0xe73214]
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], 0xe5e7a0
mov dword [esi + 0x20], 0xe5e7c0
mov dword [esi + 0x24], 0xe5e7e0
mov dword [esi + 0x28], 0xe5e7f0
mov dword [esi + 0x2c], 0xe5e810
mov dword [esi + 0x34], 0
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x54]
mov eax, dword [ebp + 0xc]
push ecx
call fcn.1000ee40
add esp, 4
test eax, eax
je 0x1000f680
mov eax, dword [edi + 0x54]
push 4
push 0x1000
push eax
push ebx
call dword [0xe732c0]
mov edx, dword [edi + 0x54]
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.10019040
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
push edi
push edx
mov dword [esi], eax
push ecx
mov edi, esi
mov dword [eax + 0x34], ebx
call fcn.1000ee60
add esp, 0x18
test eax, eax
je 0x1000f680
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x34]
je 0x1000f631
push eax
mov eax, esi
call fcn.1000f180
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x1000f638
mov dword [esi + 0x18], 1
call fcn.1000f220
test eax, eax
je 0x1000f680
push esi
call fcn.1000f000
add esp, 4
test eax, eax
je 0x1000f680
mov eax, esi
call fcn.1000f140
test eax, eax
je 0x1000f680
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x1000f6aa
add eax, ebx
cmp dword [esi + 0x14], 0
je 0x1000f69e
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x1000f68e
push 0x45a
call dword [0xe73214]
call fcn.1000f860
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