Function at 0x42ba80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
xor bl, bl
push 0x40
mov dword [ebp - 8], esi
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
call fcn.0043c073
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x14], edi
je 0x42be4d
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0x40
push edi
push edx
call fcn.0042b8e0
add esp, 0x14
test al, al
je 0x42be27
cmp word [edi], 0x5a4d
jne 0x42be27
cmp dword [edi + 0x3c], 0x40
jb 0x42be27
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push 0x40
push edi
push ebx
push eax
call fcn.0042b6b0
mov edi, dword [ebp + 0x14]
add dword [edi], 0x40
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add dword [ebp - 0x28], 0x40
adc dword [ebp - 0x24], esi
mov eax, dword [ecx + 0x3c]
sub eax, 0x40
mov dword [ebp - 0xc], eax
je 0x42bb73
cmp eax, 0x10000
ja 0x42be21
push eax
call fcn.0043c073
mov esi, eax
add esp, 4
test esi, esi
je 0x42be21
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
push ecx
push esi
push edx
call fcn.0042b8e0
add esp, 0x14
test al, al
je 0x42be21
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push eax
push esi
push ebx
push ecx
call fcn.0042b6b0
mov edx, dword [ebp - 0xc]
add dword [edi], edx
push esi
call fcn.0043c1ba
add esp, 0x14
xor esi, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
mov ecx, dword [eax + 0x3c]
push 0x108
mov dword [ebp - 0x28], ecx
call fcn.0043c073
add esp, 4
test eax, eax
mov dword [ebp - 8], eax
je 0x42be21
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
push 0x18
push ecx
push edx
call fcn.0042b8e0
add esp, 0x14
test al, al
je 0x42be21
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x42be21
mov ecx, eax
movzx eax, word [ecx + 4]
cmp ax, 0x8664
je 0x42bbe2
cmp ax, 0x14c
jne 0x42be21
mov edx, dword [ebp - 8]
test byte [edx + 0x16], 2
je 0x42be21
mov eax, edx
movzx eax, word [eax + 0x14]
cmp ax, 0xf0
jae 0x42bc05
cmp ax, 0xe0
jb 0x42be21
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
push 0x18
push ecx
push ebx
push edx
call fcn.0042b6b0
add dword [edi], 0x18
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x14]
add esp, 0x10
cmp eax, 0x100f0
mov dword [ebp - 0xc], eax
ja 0x42be21
push eax
call fcn.0043c073
mov esi, eax
add esp, 4
test esi, esi
je 0x42be21
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x28], 0x18
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
push edx
push eax
push esi
push ecx
mov dword [ebp - 0x24], 0
call fcn.0042b8e0
add esp, 0x14
test al, al
je 0x42be21
mov edx, dword [ebp - 0x10]
add dword [ebp - 0x28], edx
adc dword [ebp - 0x24], 0
movzx eax, word [esi]
cmp ax, 0x10b
jne 0x42bcf2
mov eax, dword [ebp - 8]
cmp word [eax + 0x14], 4
jb 0x42be21
mov ecx, dword [ebp + 8]
push 0x40
push esi
push ebx
push ecx
call fcn.0042b6b0
add dword [edi], 0x40
lea ecx, [esi + 0x44]
mov eax, esi
sub eax, ecx
add eax, 0x80
cdq
push eax
push ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 8]
push ebx
push edx
mov dword [ebp - 0x20], eax
call fcn.0042b6b0
mov eax, dword [ebp - 0x20]
add dword [edi], eax
mov eax, dword [esi + 0x80]
add esp, 0x20
test eax, eax
je 0x42bce1
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [esi + 0x84]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
lea ecx, [esi + 0x88]
mov eax, esi
sub eax, ecx
add eax, 0xe0
jmp 0x42bd5c
cmp ax, 0x20b
jne 0x42be21
mov ecx, dword [ebp + 8]
push 0x40
push esi
push ebx
push ecx
call fcn.0042b6b0
add dword [edi], 0x40
lea ecx, [esi + 0x44]
mov eax, esi
sub eax, ecx
add eax, 0x90
cdq
push eax
push ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 8]
push ebx
push edx
mov dword [ebp - 0x20], eax
call fcn.0042b6b0
mov eax, dword [ebp - 0x20]
add dword [edi], eax
mov eax, dword [esi + 0x90]
add esp, 0x20
test eax, eax
je 0x42bd4d
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [esi + 0x94]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
lea ecx, [esi + 0x98]
mov eax, esi
sub eax, ecx
add eax, 0xf0
cdq
push eax
push ecx
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
call fcn.0042b6b0
mov edx, dword [ebp - 0x20]
add dword [edi], edx
mov eax, dword [esi + 0x3c]
add dword [edi], 0xc
add esp, 0x10
push esi
mov dword [ebp - 0xc], eax
call fcn.0043c1ba
push 0x30
xor esi, esi
call fcn.0043c073
add esp, 8
test eax, eax
mov dword [ebp - 0x18], eax
je 0x42be21
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.004355c0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
add esp, 8
cmp dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
ja 0x42be15
sub eax, dword [edi]
cmp eax, 0x10000
mov dword [ebp - 0xc], eax
ja 0x42be15
push eax
call fcn.0043c073
mov esi, eax
add esp, 4
test esi, esi
je 0x42be15
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push ecx
push edx
push esi
push eax
call fcn.0042b8e0
add esp, 0x14
test al, al
je 0x42be15
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
push edx
adc dword [ebp - 0x24], 0
push esi
push ebx
push eax
call fcn.0042b6b0
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov dword [edi], ecx
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043c1ba
add esp, 4
mov bl, byte [ebp - 1]
mov edi, dword [ebp - 0x14]
push edi
call fcn.0043c1ba
mov eax, dword [ebp - 8]
add esp, 4
test eax, eax
je 0x42be40
push eax
call fcn.0043c1ba
add esp, 4
test esi, esi
je 0x42be4d
push esi
call fcn.0043c1ba
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret