Function at 0x401a7c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test ecx, ecx
jne 0x401a8a
xor eax, eax
leave
ret
or dword [ebp - 0x30], 0xffffffff
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], 0x420e10
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00403914
test al, al
je 0x401df6
cmp dword [ebp - 0x30], 0xffffffff
push esi
push edi
mov dword [ebp - 8], ebx
je 0x401dec
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x401dec
mov edx, dword [ebp - 0x24]
cmp edx, 0x40
jb 0x401dec
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401dec
mov ecx, dword [esi + 0x3c]
lea eax, [ecx + 0xf8]
cmp edx, eax
jb 0x401dec
cmp dword [ecx + esi], 0x4550
jne 0x401dec
movzx eax, word [ecx + esi + 4]
mov dword [ebp - 0xc], 0x14c
mov edi, eax
mov dword [ebp - 0x10], 0x8664
cmp ax, word [ebp - 0xc]
je 0x401b2f
cmp di, word [ebp - 0x10]
je 0x401dec
add ecx, 0x98
add ecx, esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
test eax, eax
je 0x401dec
add eax, 0xc
cmp edx, eax
jb 0x401dec
test ecx, ecx
je 0x401dec
mov edi, dword [ecx]
add edi, esi
lea ecx, [edi + 8]
test ecx, ecx
je 0x401dec
add edx, esi
lea eax, [ecx + 4]
mov dword [ebp - 4], edx
cmp eax, edx
jae 0x401dec
cmp byte [ecx], 0x30
lea edx, [ecx + 1]
jne 0x401dec
cmp byte [edx], 0x82
jne 0x401dec
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add eax, 0x13
add eax, ecx
test eax, 0xffffff8
je 0x401dec
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
lea ecx, [edi + eax]
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 4]
ja 0x401dec
cmp eax, 0xc
jl 0x401c10
lea eax, [ecx - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x401bd4
cmp edi, dword [ebp - 0x14]
je 0x401c10
inc edi
push 0xc
push edi
push 0x420e00
call fcn.00419144
add esp, 0xc
test eax, eax
jne 0x401bce
cmp edi, dword [ebp - 0x18]
jae 0x401c10
movzx ecx, byte [edi + 0xc]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edi + 0xd]
add cx, ax
movzx eax, cx
test ax, ax
je 0x401c10
inc eax
mov cl, 1
mov dword [ebp - 8], eax
jmp 0x401c14
mov eax, ebx
mov cl, bl
test cl, cl
je 0x401dec
test eax, eax
je 0x401dec
cmp eax, 0x10000
jae 0x401dec
push eax
call fcn.0041906b
mov edx, eax
mov dword [ebp - 4], edx
pop ecx
test esi, esi
je 0x401de5
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x40
jb 0x401de5
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401de5
mov edi, dword [esi + 0x3c]
lea eax, [edi + 0xf8]
cmp ecx, eax
jb 0x401de5
cmp dword [edi + esi], 0x4550
jne 0x401de5
movzx eax, word [edi + esi + 4]
mov edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
cmp ax, word [ebp - 0xc]
je 0x401c9b
mov eax, dword [ebp - 0x10]
cmp word [ebp - 0x18], ax
je 0x401de5
add edi, 0x98
add edi, esi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
test eax, eax
je 0x401de5
add eax, 0xc
cmp ecx, eax
jb 0x401de5
test edi, edi
je 0x401de5
mov edi, dword [edi]
add edi, esi
lea eax, [edi + 8]
test eax, eax
je 0x401de5
add ecx, esi
add eax, 4
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jae 0x401de5
cmp byte [edi + 8], 0x30
jne 0x401de5
cmp byte [edi + 9], 0x82
jne 0x401de5
movzx ecx, byte [edi + 0xa]
movzx eax, byte [edi + 0xb]
shl ecx, 8
add eax, 0x13
add eax, ecx
test eax, 0xffffff8
je 0x401de5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
add eax, edi
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
ja 0x401de5
mov edx, dword [ebp - 0x10]
mov esi, eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [edx + 4], 0xc
mov edx, dword [ebp - 4]
jl 0x401d88
push 0xc
add eax, 0xfffffff4
mov dword [ebp - 0xc], ecx
push edi
push 0x420e00
mov dword [ebp - 0x18], eax
call fcn.00419144
add esp, 0xc
test eax, eax
je 0x401d7c
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0x18]
je 0x401d83
push 0xc
inc edi
push edi
push 0x420e00
call fcn.00419144
add esp, 0xc
test eax, eax
jne 0x401d62
mov eax, dword [ebp - 0x14]
mov esi, edi
jmp 0x401d85
mov eax, esi
mov edx, dword [ebp - 4]
cmp esi, eax
jb 0x401d90
mov al, bl
jmp 0x401dcc
movzx ecx, byte [esi + 0xc]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [esi + 0xd]
add cx, ax
movzx eax, cx
test ax, ax
je 0x401d8c
mov edi, eax
lea eax, [edi + 1]
cmp dword [ebp - 0xc], eax
jb 0x401d8c
push edi
lea eax, [esi + 0xe]
push eax
push edx
call fcn.004088c0
mov edx, dword [ebp - 4]
xor eax, eax
add esp, 0xc
inc eax
mov byte [edi + edx], bl
test al, al
je 0x401de5
mov al, byte [edx]
mov ecx, edx
jmp 0x401ddd
cmp al, 0x22
je 0x401de5
inc ecx
mov al, byte [ecx]
test al, al
jne 0x401dd6
mov ebx, edx
jmp 0x401dec
push edx
call fcn.00418fb1
pop ecx
lea ecx, [ebp - 0x34]
call fcn.004039ac
pop edi
pop esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x420e10
call fcn.004039ac
mov eax, ebx
pop ebx
leave
ret