Function at 0x10078520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x10078571
jmp 0x100788e5
mov ecx, dword [ebp - 0x2c]
call fcn.10078450
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100785ab
jmp 0x100788e5
cmp dword [ebp - 4], 0
jl 0x100785c6
jg 0x100785bc
cmp dword [ebp - 8], 0x7fffffff
jbe 0x100785c6
jmp 0x100788e5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov dword [ebp - 0xc], 0x40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10078625
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0xc]
je 0x1007862f
jmp 0x100788e5
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx + 0xc]
cmp eax, 0x5a4d
je 0x10078647
jmp 0x100788e5
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0x48]
jae 0x1007865f
jmp 0x100788e5
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x48]
cdq
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x168], eax
mov dword [ecx + 0x16c], edx
mov dword [ebp - 0xc], 0x1a
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x48]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100786c2
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0xc]
je 0x100786cc
jmp 0x100788e5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x154]
cmp dword [eax], 0x4550
je 0x100786e7
jmp 0x100788e5
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x154]
movzx eax, word [edx + 0x18]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x10b
je 0x10078712
cmp dword [ebp - 0x30], 0x20b
je 0x10078793
jmp 0x10078811
mov dword [ebp - 0xc], 0xde
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x154]
add ecx, 0x1a
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10078750
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0xc]
je 0x1007875a
jmp 0x100788e5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x154]
movzx ecx, word [eax + 6]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x15c], ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], 0x20
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
add edx, 0xf8
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jmp 0x1007881b
mov dword [ebp - 0xc], 0xee
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x158]
add ecx, 0x1a
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100787d1
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0xc]
je 0x100787db
jmp 0x100788e5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x158]
movzx ecx, word [eax + 6]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x15c], ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], 0x40
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
add edx, 0x108
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jmp 0x1007881b
jmp 0x100788e5
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x170], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x174], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x15c], 0x60
jbe 0x10078846
jmp 0x100788e5
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x15c], 0
je 0x100788de
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x15c]
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100537d9
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x160], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x160], 0
jne 0x10078897
jmp 0x100788e5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x15c]
imul ecx, ecx, 0x28
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x160]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100788de
jmp 0x100788e5
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x100788f3
mov ecx, dword [ebp - 0x2c]
call fcn.10078450
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 4