Function at 0x40a370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x704968
push 0x5b2740
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1704
call fcn.005b1ec0
mov eax, dword [0x714bc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov esi, edx
mov byte [ebp - 0x16fd], 0
push 0x410
push 0
lea eax, [ebp - 0x694]
push eax
call fcn.005b1e40
add esp, 0xc
mov dword [ebp - 4], 0
push 0x206
lea ecx, [ebp - 0x694]
push ecx
push esi
call dword [0x5e552c]
test eax, eax
je 0x40a6ab
mov edx, 0x5a4d
cmp dx, word [esi]
je 0x40a40b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x40a6b8
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
jne 0x40a3fd
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x694]
push eax
call dword [fcn.005e5528]
mov dword [ebp - 0x1704], eax
xor ecx, ecx
mov word [ebp - 0x284], cx
xor esi, esi
cmp eax, 0xffffffff
je 0x40a49e
push esi
push eax
call dword [fcn.005e5548]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x171c]
push edx
push esi
push esi
mov eax, dword [ebp - 0x1704]
push eax
call dword [0x5e550c]
test eax, eax
je 0x40a48e
mov ecx, dword [ebp - 0x1718]
push ecx
mov edx, dword [ebp - 0x171c]
push edx
lea esi, [ebp - 0x284]
call fcn.0040a2f0
add esp, 8
mov eax, dword [ebp - 0x1704]
push eax
call dword [fcn.005e5504]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push ecx
push 0x6d9608
push edi
call fcn.0040a1a0
lea edx, [ebp - 0x694]
push edx
push 0x6d9620
push edi
call fcn.0040a1a0
mov eax, dword [ebx + 0x50]
push eax
mov ecx, dword [ebx + 0x34]
push ecx
push 0x6d9630
push edi
call fcn.0040a1a0
mov edx, dword [ebx + 8]
push edx
mov eax, dword [ebx + 0x58]
push eax
push 0x6d9688
push edi
call fcn.0040a1a0
lea ecx, [ebp - 0x284]
push ecx
push esi
push 0x6d96e0
push edi
call fcn.0040a1a0
add esp, 0x48
push 0x6d9728
push edi
call fcn.0040a1a0
add esp, 8
lea edx, [ebp - 0x694]
push edx
lea eax, [ebp - 0x16fc]
push eax
call fcn.00409ef0
push 0x18f
push 0
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.005b1e40
add esp, 0xc
push 0x18e
lea edx, [ebp - 0x12c4]
push edx
lea eax, [ebp - 0x1bc]
push eax
mov esi, dword [fcn.005e5554]
call esi
lea ecx, [ebp - 0x1bc]
push ecx
push 0x6d9758
push edi
call fcn.0040a1a0
push 0x18f
push 0
lea edx, [ebp - 0x1bc]
push edx
call fcn.005b1e40
add esp, 0x18
push 0x18e
lea eax, [ebp - 0xeb4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call esi
lea edx, [ebp - 0x1bc]
push edx
push 0x6d9780
push edi
call fcn.0040a1a0
push 0x18f
push 0
lea eax, [ebp - 0x1bc]
push eax
call fcn.005b1e40
add esp, 0x18
push 0x18e
lea ecx, [ebp - 0xaa4]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call esi
lea eax, [ebp - 0x1bc]
push eax
push 0x6d97a8
push edi
call fcn.0040a1a0
add esp, 0xc
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1714], eax
mov dword [ebp - 0x170c], ecx
cmp eax, 4
jge 0x40a603
mov dx, word [ebp + eax*2 - 0x16f4]
mov word [ecx], dx
add ecx, 2
inc eax
jmp 0x40a5e1
movzx eax, word [ebp - 0x22]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push 0x6d97d0
push edi
call fcn.0040a1a0
add esp, 0x18
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1710], eax
mov dword [ebp - 0x1708], ecx
cmp eax, 4
jge 0x40a64c
mov dx, word [ebp + eax*2 - 0x16ec]
mov word [ecx], dx
add ecx, 2
inc eax
jmp 0x40a62a
movzx eax, word [ebp - 0x22]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push 0x6d980c
push edi
call fcn.0040a1a0
add esp, 0x18
mov eax, dword [ebp - 0x16fc]
test eax, eax
je 0x40a681
push eax
call fcn.004b9c03
add esp, 4
mov dword [ebp - 0x16fc], 0
push 0x6d9848
push edi
call fcn.0040a1a0
add esp, 8
mov byte [ebp - 0x16fd], 1
jmp 0x40a6ab
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x16fd]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005ae4db
mov esp, ebp
pop ebp
ret