Function at 0x6d51fc34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, eax
mov ecx, 0x89a
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x1e]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6d51fc57
mov eax, dword [edi + 8]
mov dword [esi + 0x1008], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x100c], eax
mov ecx, dword [edi + 0xa0]
lea edx, [esi + 0x1010]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x6d51fc7f
mov edx, dword [esi + 0x1008]
mov eax, dword [esi + 0x100c]
mov ecx, edx
or ecx, eax
jne 0x6d51fcae
push 0x6d511f54
call dword [0x6d582984]
pop ecx
xor eax, eax
jmp 0x6d51ffc9
lea eax, [edi + 0x4c0]
mov ecx, dword [eax]
mov dword [esi + 0x202c], ecx
push ebx
mov ebx, dword [edi + 0xdf8]
lea ecx, [esi + 0x2040]
mov dword [ecx], ebx
cmp dword [eax], 5
jne 0x6d51fcd6
mov dword [ecx], 0x80000000
lea eax, [ebp + 0x10]
push eax
push 0x40
lea eax, [ebp - 0x70]
push eax
push dword [esi + 0x100c]
push edx
call dword [0x6d582998]
test eax, eax
je 0x6d51ffac
cmp dword [ebp + 0x10], 0x40
jne 0x6d51ffac
mov bx, word [ebp - 0x70]
xor eax, eax
mov word [esi + 0x2018], bx
cmp dword [edi + 0x50c], eax
setne al
mov dword [esi + 0x2044], eax
mov eax, dword [edi + 0xb4]
mov dword [esi + 0x2150], eax
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x6d51fd43
mov edx, eax
lea ecx, [esi + 0x2048]
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
test al, al
jne 0x6d51fd39
mov eax, dword [edi + 0xb0]
mov dword [esi + 0x2260], eax
mov edx, dword [edi + 0xa4]
test edx, edx
je 0x6d51fd69
lea ecx, [esi + 0x2154]
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
test al, al
jne 0x6d51fd5f
cmp bx, 0x5a4d
mov eax, dword [edi + 0xac]
mov dword [esi + 0x225c], eax
jne 0x6d51fef8
lea eax, [ebp + 0x10]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x34]
cdq
add eax, dword [esi + 0x1008]
adc edx, dword [esi + 0x100c]
push edx
push eax
call dword [0x6d582998]
test eax, eax
je 0x6d51fedc
cmp dword [ebp + 0x10], edi
jne 0x6d51fedc
cmp dword [ebp - 0x168], 0x4550
movzx eax, word [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
mov dword [esi + 0x2014], eax
mov dword [esi + 0x2030], ecx
je 0x6d51fe12
cmp word [ebp - 0x150], 0x107
jne 0x6d51fe08
mov eax, dword [ebp - 0x14c]
and dword [esi + 0x2034], 0
lea ecx, [ebp - 0x164]
mov dword [esi + 0x2038], eax
jmp 0x6d51fecd
push 0x6d511f38
jmp 0x6d51ffa3
push eax
call fcn.6d523609
test eax, eax
je 0x6d51fe7c
lea eax, [ebp + 0x10]
push eax
mov edi, 0x108
push edi
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x34]
cdq
add eax, dword [esi + 0x1008]
adc edx, dword [esi + 0x100c]
push edx
push eax
call dword [0x6d582998]
test eax, eax
je 0x6d51fedc
cmp dword [ebp + 0x10], edi
jne 0x6d51fedc
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x2034], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x2038], eax
lea ecx, [ebp - 0x26c]
lea eax, [ebp - 0x1e8]
jmp 0x6d51fea0
mov edx, dword [ebp - 0x118]
mov dword [esi + 0x2038], edx
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x164]
lea eax, [ebp - 0xf0]
mov dword [esi + 0x2034], edx
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
xor edi, edi
add edx, dword [esi + 0x1008]
push 0x1c
adc edi, dword [esi + 0x100c]
mov dword [esi + 0x2020], edx
mov dword [esi + 0x2024], edi
xor edx, edx
pop edi
div edi
mov dword [esi + 0x2028], eax
movzx eax, word [ecx + 0x12]
mov dword [esi + 0x203c], eax
jmp 0x6d51ff86
mov eax, dword [ebp - 0x34]
cdq
add eax, dword [esi + 0x1008]
adc edx, dword [esi + 0x100c]
push edx
push eax
push 0x6d511f14
jmp 0x6d51ffbd
cmp bx, 0x4944
jne 0x6d51ff9e
lea eax, [ebp + 0x10]
push eax
push 0x30
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x100c]
push dword [esi + 0x1008]
call dword [0x6d582998]
test eax, eax
je 0x6d51ff8b
cmp dword [ebp + 0x10], 0x30
jne 0x6d51ff8b
movzx eax, word [ebp - 0x2c]
mov dword [esi + 0x2014], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x2030], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x2034], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x2038], eax
movzx eax, word [ebp - 0x2a]
mov dword [esi + 0x203c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x6d51ff86
push 0x1c
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp - 0x14]
and dword [esi + 0x2024], 0
mov dword [esi + 0x2028], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8 + 0x30]
mov dword [esi + 0x2020], eax
xor eax, eax
inc eax
jmp 0x6d51ffc8
push dword [esi + 0x100c]
push dword [esi + 0x1008]
push 0x6d511eec
jmp 0x6d51ffbd
push 0x6d511edc
call dword [0x6d582984]
pop ecx
jmp 0x6d51ffc6
push dword [esi + 0x100c]
push dword [esi + 0x1008]
push 0x6d511ebc
call dword [0x6d582984]
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc