Function at 0x1000a290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.10003190
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x21c], edx
cmp dword [ebp + 0xc], 0x40
jae 0x1000a2df
push 0
push 0
push str.err1
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
mov eax, dword [ebp - 0x21c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x1000a308
push 0
push 0
push str.err2
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x3c]
add eax, 0xf8
cmp dword [ebp + 0xc], eax
jge 0x1000a333
push 0
push 0
push str.err3
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x21c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1000a368
push 0
push 0
push str.err4
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
jne 0x1000a391
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x16]
and ecx, 2
je 0x1000a391
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
je 0x1000a3a9
push 0
push 0
push str.err5
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
mov ecx, dword [ebp - 8]
add ecx, 0xf8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
mov dword [edx], ecx
mov edx, dword [ebp + 0x1c]
cmp dword [edx], 0
jne 0x1000a3e0
push 0
push 0
push str.err6
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
push 0x40
push 0x1000
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push ecx
push 0
call dword [0x10011b48]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x1000a4d9
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.10003190
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.10002460
add esp, 0xc
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov dword [eax + 2], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
add ecx, dword [edx + 0x3c]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 0xf8
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [ebp - 4], 0
jmp 0x1000a484
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx eax, word [edx + 6]
cmp dword [ebp - 4], eax
jge 0x1000a4d7
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + ecx + 0x10]
push ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x21c]
add eax, dword [ecx + edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
add edx, dword [eax + ecx + 0xc]
push edx
call fcn.10002460
add esp, 0xc
jmp 0x1000a47b
jmp 0x1000a50c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.V_error_errid:_d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1000a511
mov eax, 1
mov esp, ebp
pop ebp
ret