Function at 0x420a54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push edi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
call fcn.00490490
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x420a84
cmp dword [ebp + 0xc], 0
jne 0x420a8e
mov eax, 8
jmp 0x420f1e
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
shr dl, 4
and dl, 0xf
mov byte [ebp - 0x10c], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 8]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
and cl, 0xf
and ecx, 0xff
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x420aeb
cmp dword [ebp - 0x108], 1
jne 0x420afd
cmp dword [ebp - 0xfc], 0
je 0x420afd
cmp dword [ebp - 0x110], 0
jne 0x420b07
mov eax, 8
jmp 0x420f1e
mov dword [ebp - 0x15c], 0
mov word [ebp - 0x150], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x14e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xf8], 0
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x150]
mov dword [ebp - 0x158], edx
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x104], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x154]
push ecx
call dword [0x5429a4]
push 0
lea edx, [ebp - 0x15c]
push edx
push 0x40
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [0x542984]
test eax, eax
je 0x420ba7
cmp dword [ebp - 0x15c], 0x40
je 0x420ba5
mov eax, 6
jmp 0x420f1e
jmp 0x420bb1
mov eax, 6
jmp 0x420f1e
mov edx, dword [ebp - 0x158]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x420bcd
mov eax, 6
jmp 0x420f1e
push 0
push 0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x154]
push eax
call dword [0x5429a4]
mov ecx, dword [ebp - 0x158]
cmp eax, dword [ecx + 0x3c]
je 0x420bfd
mov eax, 6
jmp 0x420f1e
push 0
lea edx, [ebp - 0x15c]
push edx
push 0xf8
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [0x542984]
test eax, eax
je 0x420c3b
cmp dword [ebp - 0x15c], 0xf8
je 0x420c39
mov eax, 6
jmp 0x420f1e
jmp 0x420c45
mov eax, 6
jmp 0x420f1e
mov edx, dword [ebp - 0x104]
cmp dword [edx], 0x4550
jne 0x420c63
mov eax, dword [ebp - 0x104]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x420c6d
mov eax, 6
jmp 0x420f1e
push 1
push 0
mov edx, dword [ebp - 0x104]
xor eax, eax
mov ax, word [edx + 0x14]
sub eax, 0xe0
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [0x5429a4]
mov edx, dword [ebp - 0x104]
xor eax, eax
mov ax, word [edx + 6]
imul eax, eax, 0x28
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x160], ecx
cmp dword [ebp - 0x160], 0
jne 0x420ccd
mov eax, 6
jmp 0x420f1e
push 0
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x104]
xor ecx, ecx
mov cx, word [eax + 6]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x154]
push eax
call dword [0x542984]
test eax, eax
je 0x420ebe
mov ecx, dword [ebp - 0x104]
xor edx, edx
mov dx, word [ecx + 6]
imul edx, edx, 0x28
cmp dword [ebp - 0x15c], edx
jne 0x420ebe
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0
je 0x420d40
cmp dword [ebp - 0x184], 1
je 0x420d6a
jmp 0x420ebe
mov ecx, dword [ebp - 0x10c]
and ecx, 0xff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x100]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x100], eax
jmp 0x420ebe
mov ecx, dword [ebp - 0x10c]
and ecx, 0xff
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + ecx*8 + 0x78]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], 0
jmp 0x420da1
mov ecx, dword [ebp - 0x174]
add ecx, 1
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x104]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x174], eax
jae 0x420ebe
mov ecx, dword [ebp - 0x104]
cmp dword [ecx + 0x38], 0
jne 0x420dd1
mov dword [ebp - 0x178], 0
jmp 0x420df5
mov edx, dword [ebp - 0x174]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x104]
mov eax, dword [eax + edx + 8]
xor edx, edx
div dword [ecx + 0x38]
mov dword [ebp - 0x178], edx
cmp dword [ebp - 0x178], 0
jne 0x420e19
mov edx, dword [ebp - 0x174]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x178], ecx
jmp 0x420e41
mov edx, dword [ebp - 0x174]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + edx + 8]
mov edx, dword [ebp - 0x104]
add ecx, dword [edx + 0x38]
sub ecx, dword [ebp - 0x178]
mov dword [ebp - 0x178], ecx
mov eax, dword [ebp - 0x174]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x170]
cmp edx, dword [ecx + eax + 0xc]
jb 0x420eb9
mov eax, dword [ebp - 0x174]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx + eax + 0xc]
add edx, dword [ebp - 0x178]
cmp dword [ebp - 0x170], edx
jae 0x420eb9
mov eax, dword [ebp - 0x174]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx + eax + 0x14]
add edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x174]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x160]
sub edx, dword [ecx + eax + 0xc]
mov eax, dword [ebp - 0x100]
add eax, edx
mov dword [ebp - 0x100], eax
jmp 0x420ebe
jmp 0x420d92
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x180], ecx
mov edx, dword [ebp - 0x180]
push edx
call fcn.004a4518
add esp, 4
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x16c], eax
mov cl, byte [ebp - 0x110]
mov byte [ebp - 0x168], cl
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x16c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004207c3
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret