Function at 0x10008c79
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, 0x60
push esi
push edi
and dword [ebp - 0x34], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x10], 0
call 0x10008c92
pop dword [ebp - 0x58]
xor eax, eax
inc eax
je 0x10008cde
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10008cd5
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x40
jb 0x10008cd5
cmp dword [ebp - 0xc], 0x400
jae 0x10008cd5
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x10008cd5
jmp 0x10008cde
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
jmp 0x10008c95
mov eax, dword fs:[0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10008d89
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov ax, word [eax + 0x24]
mov word [ebp - 0x50], ax
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
ror eax, 0xd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
cmp eax, 0x61
jl 0x10008d41
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x20]
mov dword [ebp - 4], eax
jmp 0x10008d4d
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov ax, word [ebp - 0x50]
sub ax, 1
mov word [ebp - 0x50], ax
movzx eax, word [ebp - 0x50]
test eax, eax
jne 0x10008d1b
cmp dword [ebp - 4], 0x6a4abc5b
jne 0x10008d7c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x3c], eax
jmp 0x10008d89
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x10008cf9
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
add eax, 0x78
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x44], ecx
push 4
pop eax
mov word [ebp - 0x50], ax
movzx eax, word [ebp - 0x50]
test eax, eax
jle 0x10008ec6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x60], ecx
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
ror eax, 0xd
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x60]
movsx eax, byte [eax]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
movsx eax, byte [eax]
test eax, eax
jne 0x10008de3
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xec0e4e8e
je 0x10008e33
cmp dword [ebp - 0x24], 0x7c0dfcaa
je 0x10008e33
cmp dword [ebp - 0x24], 0x91afca54
je 0x10008e33
cmp dword [ebp - 0x24], 0x7946c61b
jne 0x10008eb0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x44]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x24], 0xec0e4e8e
jne 0x10008e64
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x10008ea4
cmp dword [ebp - 0x24], 0x7c0dfcaa
jne 0x10008e7a
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x38], ecx
jmp 0x10008ea4
cmp dword [ebp - 0x24], 0x91afca54
jne 0x10008e90
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x10008ea4
cmp dword [ebp - 0x24], 0x7946c61b
jne 0x10008ea4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ax, word [ebp - 0x50]
sub ax, 1
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
inc eax
inc eax
mov dword [ebp - 0x44], eax
jmp 0x10008dc8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x16]
and eax, 0x8000
je 0x10008ee9
mov dword [ebp - 0x10], 0x40
jmp 0x10008ef0
mov dword [ebp - 0x10], 4
push dword [ebp - 0x10]
push 0x3000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
push 0
call dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
dec ecx
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x10008fa7
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
je 0x10008f9c
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
add eax, 0x28
mov dword [ebp - 0x30], eax
jmp 0x10008f49
mov eax, dword [ebp - 0xc]
add eax, 0x80
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x100090aa
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0xc]
push ecx
call dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x1000909c
cmp dword [ebp - 0x1c], 0
je 0x10009063
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0x80000000
je 0x10009063
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
add eax, 0x78
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0xffff
mov ecx, dword [ebp - 0x48]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x1000907f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
inc eax
inc eax
push eax
push dword [ebp - 0x58]
call dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], 0
je 0x10009097
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x10008ff1
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
jmp 0x10008fbd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0xc]
add eax, 0xa0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 4], 0
je 0x10009265
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10009265
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
dec ecx
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x10009254
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 0xa
jne 0x10009160
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax]
add eax, dword [ebp - 0x58]
mov ecx, 0xfff
mov edx, dword [ebp - 0x1c]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx], eax
jmp 0x10009247
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 3
jne 0x100091a6
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax]
add eax, dword [ebp - 0x58]
mov ecx, 0xfff
mov edx, dword [ebp - 0x1c]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx], eax
jmp 0x10009247
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 1
jne 0x100091f9
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x58]
shr ecx, 0x10
and ecx, 0xffff
movzx ecx, cx
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + eax]
add eax, ecx
mov ecx, 0xfff
mov edx, dword [ebp - 0x1c]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x30]
mov word [edx + ecx], ax
jmp 0x10009247
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 2
jne 0x10009247
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
movzx ecx, cx
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + eax]
add eax, ecx
mov ecx, 0xfff
mov edx, dword [ebp - 0x1c]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x30]
mov word [edx + ecx], ax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10009108
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x100090d9
cmp dword [ebp - 0x34], 0
je 0x10009286
cmp dword [ebp - 0x40], 0
jbe 0x10009286
cmp dword [ebp - 0x10], 4
jne 0x10009286
lea eax, [ebp - 8]
push eax
push 0x20
push dword [ebp - 0x40]
push dword [ebp - 0x34]
call dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x30], ecx
push dword [ebp + 8]
push 1
push dword [ebp - 0x3c]
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
leave
ret 4