Function at 0x10007f59
Capabilities:
Access peb ldr_data
Enumerate pe sections
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
call 0x10007f66
pop dword [ebp - 0x44]
xor eax, eax
inc eax
je 0x10007fba
mov eax, dword [ebp - 0x44]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10007fb1
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x40
jb 0x10007fb1
cmp dword [ebp - 8], 0x400
jae 0x10007fb1
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x10007fb1
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], ax
jmp 0x10007fba
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x44], eax
jmp 0x10007f69
mov eax, dword fs:[0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10008065
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 0x24]
mov word [ebp - 0x3c], ax
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
ror eax, 0xd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
cmp eax, 0x61
jl 0x1000801d
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x20]
mov dword [ebp - 4], eax
jmp 0x10008029
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov ax, word [ebp - 0x3c]
sub ax, 1
mov word [ebp - 0x3c], ax
movzx eax, word [ebp - 0x3c]
test eax, eax
jne 0x10007ff7
cmp dword [ebp - 4], 0x6a4abc5b
jne 0x10008058
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x10008065
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x10007fd5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x78
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x30], ecx
push 3
pop eax
mov word [ebp - 0x3c], ax
movzx eax, word [ebp - 0x3c]
test eax, eax
jle 0x10008183
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
ror eax, 0xd
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
test eax, eax
jne 0x100080bf
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xec0e4e8e
je 0x10008106
cmp dword [ebp - 0x18], 0x7c0dfcaa
je 0x10008106
cmp dword [ebp - 0x18], 0x91afca54
jne 0x1000816d
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], 0xec0e4e8e
jne 0x10008137
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0xc], ecx
jmp 0x10008161
cmp dword [ebp - 0x18], 0x7c0dfcaa
jne 0x1000814d
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x10008161
cmp dword [ebp - 0x18], 0x91afca54
jne 0x10008161
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ax, word [ebp - 0x3c]
sub ax, 1
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
inc eax
inc eax
mov dword [ebp - 0x30], eax
jmp 0x100080a4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
push 0x40
push 0x3000
mov eax, dword [ebp - 8]
push dword [eax + 0x50]
push 0
call dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
dec ecx
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x10008224
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
add eax, 0x28
mov dword [ebp - 0x24], eax
jmp 0x100081df
mov eax, dword [ebp - 8]
add eax, 0x80
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x10008327
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0xc]
push ecx
call dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x10008319
cmp dword [ebp - 0x10], 0
je 0x100082e0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0x80000000
je 0x100082e0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x78
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xffff
mov ecx, dword [ebp - 0x34]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax]
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x100082fc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
inc eax
inc eax
push eax
push dword [ebp - 0x44]
call dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x10], 0
je 0x10008314
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x1000826e
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
jmp 0x1000823a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 8]
add eax, 0xa0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
je 0x100084e2
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100084e2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
dec ecx
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x100084d1
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 0xa
jne 0x100083dd
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
add eax, dword [ebp - 0x44]
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx], eax
jmp 0x100084c4
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 3
jne 0x10008423
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
add eax, dword [ebp - 0x44]
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx], eax
jmp 0x100084c4
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 1
jne 0x10008476
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x44]
shr ecx, 0x10
and ecx, 0xffff
movzx ecx, cx
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + eax]
add eax, ecx
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x24]
mov word [edx + ecx], ax
jmp 0x100084c4
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 2
jne 0x100084c4
mov eax, 0xfff
mov ecx, dword [ebp - 0x10]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x44]
and ecx, 0xffff
movzx ecx, cx
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + eax]
add eax, ecx
mov ecx, 0xfff
mov edx, dword [ebp - 0x10]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x24]
mov word [edx + ecx], ax
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x10008385
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x10008356
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x24], ecx
push dword [ebp + 8]
push 1
push dword [ebp - 0x2c]
call dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
leave
ret 4