Function at 0x405070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0x40
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
call edx
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x4050b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], 1
mov eax, dword [ebp - 0x4c]
jmp 0x405290
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x30], 0
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x4050d3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x30], ecx
mov dword [ebp - 4], 0x108
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
call eax
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x405116
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c], 1
mov eax, dword [ebp - 0x4c]
jmp 0x405290
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
cmp eax, 0x5a56
jne 0x40517f
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x59], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 2]
mov word [edx + 0x54], cx
mov edx, dword [ebp + 0xc]
movzx ax, byte [edx + 5]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x56], ax
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 0x1000
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
add edx, 0x28
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
sub edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], edx
jmp 0x405270
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0x4550
jne 0x40525f
mov edx, dword [ebp + 8]
mov byte [edx + 0x59], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 4]
mov word [eax + 0x54], dx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 4]
cmp ecx, 0x14c
jne 0x4051bd
mov edx, 0x10b
mov word [ebp - 0x50], dx
jmp 0x4051fc
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 4]
cmp ecx, 0x200
jne 0x4051d7
mov edx, 0x20b
mov word [ebp - 0x50], dx
jmp 0x4051fc
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 4]
cmp ecx, 0x8664
jne 0x4051f1
mov edx, 0x20b
mov word [ebp - 0x50], dx
jmp 0x4051fc
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x18]
mov word [ebp - 0x50], cx
movzx edx, word [ebp - 0x50]
cmp edx, 0x10b
je 0x405213
movzx eax, word [ebp - 0x50]
cmp eax, 0x20b
jne 0x40524c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ax, word [edx + 0x5c]
mov word [ecx + 0x56], ax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x50]
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x40], ecx
jmp 0x40525d
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c], 3
mov eax, 0x80000003
jmp 0x405290
jmp 0x405270
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], 3
mov eax, 0x80000003
jmp 0x405290
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x54]
push edx
call fcn.00406170
add esp, 4
movzx eax, al
test eax, eax
jne 0x40528e
mov eax, 0x80000003
jmp 0x405290
xor eax, eax
mov esp, ebp
pop ebp
ret