Function at 0x10020601
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x100457bb
call fcn.10029f1c
sub esp, 0xac
push ebx
push esi
push edi
push 0x40
xor bl, bl
call fcn.10025e1e
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, eax
push 0x40
push esi
push edi
mov dword [ebp - 0x20], esi
call fcn.1000b839
add esp, 0x14
test al, al
je 0x1002098c
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002098c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1002098c
push 0xf8
call fcn.10025e1e
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov esi, eax
push 0xf8
push esi
mov dword [ebp - 0x40], esi
mov ecx, dword [ecx + 0x3c]
add ecx, edi
push ecx
call fcn.1000b839
add esp, 0x14
test al, al
je 0x10020982
push 0xf8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10020982
cmp dword [esi], 0x4550
jne 0x10020982
cmp dword [esi + 0x80], eax
je 0x10020982
mov eax, dword [esi + 0x84]
test eax, eax
je 0x10020982
push eax
call fcn.10025e1e
push dword [ebp + 0x10]
mov ecx, dword [esi + 0x80]
push dword [esi + 0x84]
add ecx, edi
mov dword [ebp - 0x14], eax
push eax
push ecx
call fcn.1000b839
add esp, 0x14
test al, al
je 0x10020978
push 0x14
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
inc bl
mov dword [ebp - 0x30], ebx
je 0x1002097b
cmp dword [eax], 0
je 0x1002097b
mov esi, eax
add esi, 0xc
xor eax, eax
push 4
mov dword [ebp - 0x18], eax
call fcn.10025e1e
push 4
mov dword [ebp + 8], eax
call fcn.10025e1e
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
mov eax, dword [esi - 0xc]
mov ebx, dword [ebp + 8]
add eax, edi
and dword [ebp - 4], 0
push 4
push ebx
push eax
call fcn.1000b839
add esp, 0x18
test al, al
je 0x10020897
and dword [ebp + 8], 0
push dword [ebp + 0x10]
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
push 4
push dword [ebp - 0x1c]
add eax, edi
push eax
call fcn.1000b839
add esp, 0x10
test al, al
je 0x10020897
mov ecx, dword [ebx]
test ecx, ecx
je 0x10020897
mov eax, dword [esi + 4]
add eax, dword [ebp + 8]
add eax, edi
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
xor eax, eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
mov byte [ebp - 4], 1
test ecx, ecx
jns 0x100207d0
mov ax, cx
mov word [ebp - 0x5c], ax
jmp 0x10020851
push dword [ebp + 0x10]
mov byte [ebp + 0xb], al
lea eax, [ebp - 0x2c]
push 1
push 1
push eax
lea eax, [ebp + 0xb]
push eax
lea eax, [edi + 2]
add eax, ecx
push 0xff
push eax
call fcn.1000b9d3
add esp, 0x1c
test al, al
je 0x10020851
mov eax, dword [ebp - 0x2c]
add eax, 4
push eax
call fcn.10025e1e
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x28], eax
push ecx
mov ecx, dword [ebx]
push eax
add ecx, edi
push ecx
call fcn.1000b839
add esp, 0x14
test al, al
je 0x10020848
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x7c]
add eax, 2
push eax
call fcn.10001576
push eax
lea ecx, [ebp - 0x58]
call fcn.10020f36
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.10001ff7
push dword [ebp - 0x28]
call fcn.1002ab36
pop ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100215b7
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
push 0
push 1
mov byte [ebp - 4], 0
call fcn.10001ff7
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi - 0xc]
shl ecx, 2
push 4
add eax, ecx
mov dword [ebp + 8], ecx
add eax, edi
push ebx
push eax
call fcn.1000b839
add esp, 0x10
test al, al
jne 0x1002076b
push dword [ebp - 0x1c]
call fcn.1002ab36
push ebx
call fcn.1002ab36
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
mov byte [ebp - 0xd], 0
push 1
push 1
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [esi]
add eax, edi
push 0xff
push eax
call fcn.1000b9d3
add esp, 0x24
test al, al
je 0x10020959
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.10025e1e
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov ebx, eax
inc ecx
push ecx
mov ecx, dword [esi]
add ecx, edi
push ebx
push ecx
call fcn.1000b839
add esp, 0x14
test al, al
je 0x10020952
push ebx
lea ecx, [ebp - 0x94]
call fcn.10001576
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10020d5a
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.1002154a
lea ecx, [ebp - 0xa0]
call fcn.100169d4
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.10001ff7
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10001ff7
push ebx
call fcn.1002ab36
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
add esi, 0x14
call fcn.100169d4
cmp dword [esi - 0xc], 0
jne 0x1002071f
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
push eax
call fcn.1002ab36
pop ecx
push esi
call fcn.1002ab36
mov esi, dword [ebp - 0x20]
pop ecx
push esi
call fcn.1002ab36
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret