Function at 0x7de6b3f1
Capabilities:
Parse pe header

Disassembly:
push edi
xor eax, eax
mov ecx, eax
dec ecx
cld
repne scasb al, byte es:[edi]
mov eax, dword [edi - 5]
or eax, 0x20202020
pop edx
cmp eax, 0x6578652e
je 0x7de6b45a
cmp eax, 0x6d6f632e
je 0x7de6b45a
cmp eax, 0x7461622e
jne 0x7de6b788
call fcn.7de6b789
jb 0x7de6b788
xchg edi, eax
add edi, dword [ebp + 0x405d8d]
cmp byte [edi - 1], 0
je 0x7de6b783
lea esi, [ebp + 0x402daf]
mov ecx, 0x102
cld
rep movsb byte es:[edi], byte [esi]
call fcn.7de6baa2
add dword [ebp + 0x405d8d], 0x4502
jmp 0x7de6b783
call fcn.7de6b789
jb 0x7de6b788
cmp word [eax], 0x5a4d
je 0x7de6b4dd
cmp word [eax], 0x4d5a
je 0x7de6b4dd
mov ecx, dword [ebp + 0x405d8d]
mov esi, ecx
dec esi
add esi, dword [ebp + 0x405d99]
mov edi, esi
add edi, 0x20
std
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0x402d0f]
mov edi, dword [ebp + 0x405d99]
mov ebx, 0x18
call fcn.7de6ba8b
mov eax, dword [ebp + 0x405d8d]
add eax, 0x20
mov dword [ebp + 0x405d8d], eax
mov ebx, dword [ebp + 0x405d99]
cmp word [eax + ebx - 4], 0x534e
jne 0x7de6b4c8
add word [eax + ebx - 2], 0x4490
sub eax, 7
xor edx, edx
mov ecx, 0x200
div ecx
or edx, edx
je 0x7de6b4d6
inc eax
mov dword [ebx + 2], edx
mov dword [ebx + 4], eax
xchg ebx, eax
cmp word [eax + 0x12], 0x4a42
je 0x7de6b783
mov word [eax + 0x12], 0x4a42
cmp word [eax + 0x18], 0x40
je 0x7de6b5f3
mov bx, word [eax + 0xe]
mov word [ebp + 0x402d85], bx
mov bx, word [eax + 0x10]
mov word [ebp + 0x402d8a], bx
mov bx, word [eax + 0x14]
mov word [ebp + 0x402d8e], bx
mov bx, word [eax + 0x16]
mov word [ebp + 0x402d90], bx
movzx ebx, word [eax + 2]
movzx ecx, word [eax + 4]
or ebx, ebx
je 0x7de6b533
dec ecx
mov eax, 0x200
mul ecx
add eax, ebx
mov dword [ebp + 0x405d5d], eax
cmp dword [ebp + 0x405d8d], eax
je 0x7de6b582
mov esi, dword [ebp + 0x405d99]
cmp dword [eax + esi], 0x564f4246
je 0x7de6b566
cmp word [eax + esi + 3], 0x534e
jne 0x7de6b783
mov ecx, dword [ebp + 0x405d8d]
mov esi, ecx
sub ecx, eax
dec esi
add esi, dword [ebp + 0x405d99]
mov edi, esi
add edi, 0x4490
std
rep movsb byte es:[edi], byte [esi]
add dword [ebp + 0x405d8d], 0x4490
add dword [ebp + 0x405d5d], 0x4490
mov ebx, dword [ebp + 0x405d99]
mov edi, eax
add edi, ebx
lea esi, [ebp + 0x402d27]
mov ecx, 0x88
cld
rep movsb byte es:[edi], byte [esi]
call fcn.7de6baa2
xor edx, edx
mov ecx, 0x10
div ecx
sub ax, word [ebx + 8]
mov word [ebx + 0xe], ax
mov word [ebx + 0x10], 0x6000
mov word [ebx + 0x14], dx
mov word [ebx + 0x16], ax
mov eax, dword [ebp + 0x405d5d]
xor edx, edx
mov ecx, 0x200
div ecx
or edx, edx
je 0x7de6b5e6
inc eax
mov word [ebx + 2], dx
mov word [ebx + 4], ax
jmp 0x7de6b783
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x7de6b75d
cmp word [ebx], 0x454e
jne 0x7de6b783
mov edi, dword [ebp + 0x405d6d]
mov esi, edi
cmp byte [edi], 0x5c
jne 0x7de6b61e
mov esi, edi
cmp byte [edi], 0
je 0x7de6b626
inc edi
jmp 0x7de6b617
inc esi
lea edi, [ebp + 0x402f6c]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xchg ebx, eax
mov cx, word [eax + 0x32]
or cx, cx
jne 0x7de6b63f
mov cx, 9
or ch, ch
jne 0x7de6b783
mov byte [ebp + 0x402942], cl
mov byte [ebp + 0x402967], cl
mov ebx, 0xc8
shr ebx, cl
inc ebx
shl ebx, cl
movzx esi, word [eax + 0x24]
add esi, eax
cmp cx, word [esi]
jne 0x7de6b783
inc esi
inc esi
mov dword [ebp + 0x405d61], esi
movzx edx, word [eax + 0x16]
dec edx
shl edx, 3
movzx ecx, word [eax + 0x22]
add edx, ecx
add edx, eax
movzx ecx, word [edx + 2]
or ecx, ecx
je 0x7de6b783
cmp word [edx + 6], cx
jne 0x7de6b783
push word [eax + 0x14]
pop word [ebp + 0x402f48]
mov word [eax + 0x14], cx
add word [edx + 2], bx
add word [edx + 6], bx
movzx edi, word [edx]
push ecx
mov cl, byte [ebp + 0x402942]
shl edi, cl
pop ecx
add edi, ecx
mov esi, dword [ebp + 0x405d8d]
mov ecx, esi
sub ecx, edi
dec esi
add esi, dword [ebp + 0x405d99]
push edi
add dword [ebp + 0x405d8d], ebx
mov edi, esi
add edi, ebx
std
rep movsb byte es:[edi], byte [esi]
pop edi
push edi
add edi, dword [ebp + 0x405d99]
lea esi, [ebp + 0x402eb1]
mov ecx, ebx
cld
rep movsb byte es:[edi], byte [esi]
pop edx
mov cl, byte [ebp + 0x402942]
shr ebx, cl
movzx esi, word [eax + 0x22]
add esi, eax
movzx ecx, word [eax + 0x1c]
movzx eax, word [esi]
shl eax, 4
cmp eax, edx
jl 0x7de6b712
add word [esi], bx
add esi, 8
loop 0x7de6b705
mov esi, dword [ebp + 0x405d61]
cmp word [esi], 0
je 0x7de6b740
movzx ecx, word [esi + 2]
lea edi, [esi + 8]
movzx eax, word [edi]
shl eax, 4
cmp eax, edx
jl 0x7de6b737
add word [edi], bx
add edi, 0xc
loop 0x7de6b72a
mov esi, edi
jmp 0x7de6b71d
mov edi, dword [ebp + 0x405d99]
add edi, dword [ebp + 0x405d8d]
call fcn.7de6baa2
add dword [ebp + 0x405d8d], 0x4400
jmp 0x7de6b783
push ebx
call fcn.7de6b94e
mov ebx, dword [ebp + 0x405d9d]
xchg dword [eax + 0x28], ebx
mov ecx, dword [eax + 0x34]
mov dword [ebp + 0x402014], ecx
add ebx, ecx
mov dword [ebp + 0x402001], ebx
pop ebx
call fcn.7de6b9c4
call fcn.7de6b8da
ret