Function at 0x1002ebd
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x118
mov eax, dword [0x100a028]
push ebx
xor ebx, ebx
push ebx
push 0x10000000
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
call dword [fcn.0100203c]
cmp eax, 0xffffffff
mov dword [ebp - 0x98], eax
je 0x100323c
push esi
push edi
mov edi, dword [0x100214c]
push ebx
lea ecx, [ebp + 0x7c]
push ecx
mov esi, 0xf8
push esi
lea ecx, [ebp - 0x88]
push ecx
push eax
call edi
test eax, eax
je 0x100322e
cmp dword [ebp + 0x7c], esi
jne 0x100322e
cmp word [ebp - 0x88], 0x5a4d
jne 0x1002f74
push ebx
push ebx
push dword [ebp - 0x4c]
push dword [ebp - 0x98]
call dword [fcn.01002148]
cmp eax, dword [ebp - 0x4c]
jne 0x100322e
push ebx
lea eax, [ebp + 0x7c]
push eax
push esi
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x98]
call edi
test eax, eax
je 0x100322e
cmp dword [ebp + 0x7c], esi
jne 0x100322e
cmp dword [ebp - 0x88], 0x4550
jne 0x100322e
cmp word [ebp - 0x74], 0xe0
jb 0x100322e
cmp dword [ebp + 0x10], ebx
je 0x100322e
cmp dword [ebp + 0x14], ebx
je 0x100322e
cmp dword [ebp + 0x14], 0x40000
ja 0x100322e
push dword [ebp + 0x14]
push 8
push dword [0x100ad58]
call dword [fcn.01002078]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x9c], esi
je 0x100322e
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x98]
call dword [fcn.01002148]
cmp eax, dword [ebp + 0x10]
jne 0x100322e
push ebx
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x98]
call edi
test eax, eax
je 0x100322e
mov ecx, dword [ebp + 0x14]
cmp dword [ebp + 0x7c], ecx
jne 0x100322e
mov eax, esi
mov dword [ebp - 0x8c], ecx
cmp ecx, 0x16
jmp 0x1003065
cmp byte [eax], 0xc0
jne 0x1003057
push 4
pop ecx
mov edi, 0x10021ec
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1003057
mov ecx, dword [eax + 0x10]
cmp ecx, 0x16
mov dword [ebp + 0x7c], ecx
jb 0x1003057
cmp ecx, dword [ebp - 0x8c]
ja 0x1003057
push ecx
push eax
push 0xffffffffffffffff
call fcn.01002e90
test eax, eax
je 0x1003072
mov eax, dword [ebp - 0x90]
inc eax
dec dword [ebp - 0x8c]
cmp dword [ebp - 0x8c], 0x16
mov dword [ebp - 0x90], eax
jae 0x100301c
jmp 0x100322e
mov ecx, dword [ebp - 0x90]
test cl, 3
je 0x10030a0
mov edi, dword [ebp - 0x9c]
mov esi, edi
jmp 0x1003090
dec dword [ebp + 0x7c]
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
cmp dword [ebp + 0x7c], ebx
jne 0x1003087
dec dword [ebp + 0x7c]
mov dword [ebp - 0x90], edi
mov ecx, edi
movzx edx, word [ecx + 0x14]
mov eax, dword [ecx + 0x10]
add eax, ecx
add ecx, 0x16
cmp edx, ebx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa4], eax
je 0x100322e
mov edi, dword [0x1002074]
jmp 0x10030d4
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xa4]
mov edx, ecx
add ecx, 4
cmp ecx, eax
mov dword [ebp - 0x94], edx
ja 0x100322e
mov ax, word [edx]
test al, 1
jne 0x100322e
test byte [edx + 2], 1
jne 0x100322e
movzx edx, word [edx + 2]
movzx eax, ax
mov esi, ecx
add ecx, eax
mov dword [ebp - 0xa0], ecx
add ecx, edx
cmp ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x90], ecx
ja 0x100322e
mov ecx, dword [ebp - 0xa0]
shr eax, 1
mov word [esi + eax*2 - 2], bx
mov eax, dword [ebp - 0x94]
movzx eax, word [eax + 2]
push 2
shr eax, 1
mov word [ecx + eax*2 - 2], bx
pop eax
sub esi, eax
mov word [esi], 0x5f
sub esi, eax
mov word [esi], 0x58
sub esi, eax
mov word [esi], 0x46
sub esi, eax
mov word [esi], 0x53
sub esi, eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
mov word [esi], 0x5f
call edi
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x1003222
cmp dword [ebp - 0x8c], ebx
jne 0x1003222
push eax
push 8
push dword [0x100ad58]
call dword [fcn.01002078]
cmp eax, ebx
mov dword [ebp - 0x94], eax
je 0x100322e
push ebx
push ebx
push dword [ebp + 0x7c]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
push ebx
push ebx
push dword [ebp - 0x94]
call dword [0x1002070]
test eax, eax
jne 0x1003222
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0xa0]
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x1003222
cmp dword [ebp - 0x8c], ebx
jne 0x1003222
push eax
push 8
push dword [0x100ad58]
call dword [fcn.01002078]
mov esi, eax
cmp esi, ebx
je 0x100322e
push ebx
push ebx
push dword [ebp + 0x7c]
push esi
push 0xffffffffffffffff
push dword [ebp - 0xa0]
push ebx
push ebx
call edi
push esi
push dword [ebp - 0x94]
call dword [0x100206c]
dec dword [ebp - 0x9c]
jne 0x10030c8
push dword [ebp - 0x98]
call dword [0x1002120]
pop edi
pop esi
mov ecx, dword [ebp + 0x70]
pop ebx
call fcn.01005e64
add ebp, 0x74
leave
ret 4