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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
and dword [ebp - 0x38], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x10], 0
call 0x10008d70
pop dword [ebp - 0x6c]
xor eax, eax
inc eax
je 0x10008dbc
mov eax, dword [ebp - 0x6c]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10008db3
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x40
jb 0x10008db3
cmp dword [ebp - 0xc], 0x400
jae 0x10008db3
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x10008db3
jmp 0x10008dbc
mov eax, dword [ebp - 0x6c]
dec eax
mov dword [ebp - 0x6c], eax
jmp 0x10008d73
mov eax, dword fs:[0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10008e67
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov ax, word [eax + 0x24]
mov word [ebp - 0x54], ax
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
ror eax, 0xd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
cmp eax, 0x61
jl 0x10008e1f
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x20]
mov dword [ebp - 4], eax
jmp 0x10008e2b
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
mov ax, word [ebp - 0x54]
sub ax, 1
mov word [ebp - 0x54], ax
movzx eax, word [ebp - 0x54]
test eax, eax
jne 0x10008df9
cmp dword [ebp - 4], 0x6a4abc5b
jne 0x10008e5a
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x40], eax
jmp 0x10008e67
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jmp 0x10008dd7
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
add eax, 0x78
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x48], ecx
push 6
pop eax
mov word [ebp - 0x54], ax
movzx eax, word [ebp - 0x54]
test eax, eax
jle 0x10008fe6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x78], ecx
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
ror eax, 0xd
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
movsx eax, byte [eax]
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
movsx eax, byte [eax]
test eax, eax
jne 0x10008ec1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xec0e4e8e
je 0x10008f27
cmp dword [ebp - 0x28], 0x7c0dfcaa
je 0x10008f27
cmp dword [ebp - 0x28], 0x91afca54
je 0x10008f27
cmp dword [ebp - 0x28], 0x7946c61b
je 0x10008f27
cmp dword [ebp - 0x28], 0x753a4fc
je 0x10008f27
cmp dword [ebp - 0x28], 0xd3324904
jne 0x10008fd0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x48]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x60]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x28], 0xec0e4e8e
jne 0x10008f58
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x10008fc4
cmp dword [ebp - 0x28], 0x7c0dfcaa
jne 0x10008f6e
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
jmp 0x10008fc4
cmp dword [ebp - 0x28], 0x91afca54
jne 0x10008f84
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
jmp 0x10008fc4
cmp dword [ebp - 0x28], 0x7946c61b
jne 0x10008f9a
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x10008fc4
cmp dword [ebp - 0x28], 0x753a4fc
jne 0x10008fb0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x58], ecx
jmp 0x10008fc4
cmp dword [ebp - 0x28], 0xd3324904
jne 0x10008fc4
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ax, word [ebp - 0x54]
sub ax, 1
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
inc eax
inc eax
mov dword [ebp - 0x48], eax
jmp 0x10008ea6
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x16]
and eax, 0x8000
je 0x10009009
mov dword [ebp - 0x10], 0x40
jmp 0x10009010
mov dword [ebp - 0x10], 4
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x16]
and eax, 0x4000
je 0x100090c6
mov eax, dword [ebp - 0x6c]
add eax, 0x40
push eax
call dword [ebp - 0x24]
test eax, eax
jne 0x100090c6
push 1
push 0
mov eax, dword [ebp - 0x6c]
add eax, 0x40
push eax
call dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 1
jmp 0x10009059
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x70], 0xffffffff
je 0x10009079
cmp dword [ebp - 4], 0x10
jae 0x10009079
cmp dword [ebp - 0x40], 0
jne 0x10009079
push dword [ebp - 4]
push dword [ebp - 0x70]
call dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
jmp 0x10009052
cmp dword [ebp - 0x40], 0
je 0x100090c6
mov eax, dword [ebp - 0x40]
xor edx, edx
mov ecx, 0x1000
div ecx
mov eax, dword [ebp - 0x40]
sub eax, edx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
push dword [ebp - 0x40]
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x40]
xor al, al
mov ecx, dword [ecx + 0x50]
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
push dword [ebp - 0x40]
call dword [ebp - 0x14]
cmp dword [ebp - 0x40], 0
jne 0x100090ef
push dword [ebp - 0x10]
push 0x3000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
push 0
call dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x40]
xor al, al
mov ecx, dword [ecx + 0x50]
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax - 0x40]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x10]
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
movzx eax, byte [ebp - 0x59]
test eax, eax
je 0x10009133
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x40], ecx
jmp 0x1000916b
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x16]
and eax, 1
je 0x1000916b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
and dword [eax], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 4]
and dword [eax + 0x3c], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
dec ecx
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x100091e4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
je 0x100091d9
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
add eax, 0x28
mov dword [ebp - 0x34], eax
jmp 0x10009186
mov eax, dword [ebp - 0xc]
add eax, 0x80
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x10009353
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x40]
add esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x68]
push 0x40
pop ecx
rep movsb byte es:[edi], byte [esi]
and dword [ebp - 0x64], 0
jmp 0x10009225
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x40
jae 0x10009244
movzx eax, byte [ebp - 0x59]
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x64]
movzx ecx, byte [ecx]
xor ecx, eax
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x64]
mov byte [eax], cl
jmp 0x1000921e
push dword [ebp - 0x68]
call dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x10009345
cmp dword [ebp - 0x1c], 0
je 0x100092d6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0x80000000
je 0x100092d6
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
add eax, 0x78
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0xffff
mov ecx, dword [ebp - 0x4c]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x60]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
add ecx, dword [eax]
mov eax, dword [ebp - 0x34]
mov dword [eax], ecx
jmp 0x10009328
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov esi, dword [ebp - 0x50]
inc esi
inc esi
mov edi, dword [ebp - 0x68]
push 0x40
pop ecx
rep movsb byte es:[edi], byte [esi]
and dword [ebp - 0x64], 0
jmp 0x100092fb
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x40
jae 0x1000931a
movzx eax, byte [ebp - 0x59]
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x64]
movzx ecx, byte [ecx]
xor ecx, eax
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x64]
mov byte [eax], cl
jmp 0x100092f4
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x1c], 0
je 0x10009340
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x10009264
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
jmp 0x100091fa
mov edi, dword [ebp - 0x68]
xor al, al
push 0x40
pop ecx
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0xc]
add eax, 0xa0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 4], 0
je 0x10009518
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10009518
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
dec ecx
mov dword [ebp - 0x50], ecx
test eax, eax
je 0x10009507
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 0xa
jne 0x10009413
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + eax]
add eax, dword [ebp - 0x6c]
mov ecx, 0xfff
mov edx, dword [ebp - 0x1c]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x34]
mov dword [edx + ecx], eax
jmp 0x100094fa
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 3
jne 0x10009459
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + eax]
add eax, dword [ebp - 0x6c]
mov ecx, 0xfff
mov edx, dword [ebp - 0x1c]
and cx, word [edx]
movzx ecx, cx
mov edx, dword [ebp - 0x34]
mov dword [edx + ecx], eax
jmp 0x100094fa
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 1
jne 0x100094ac
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
and ecx, 0xffff
movzx ecx, cx
mov edx, dword [ebp - 0x34]
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 - 0x34]
mov word [edx + ecx], ax
jmp 0x100094fa
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 2
jne 0x100094fa
mov eax, 0xfff
mov ecx, dword [ebp - 0x1c]
and ax, word [ecx]
movzx eax, ax
mov ecx, dword [ebp - 0x6c]
and ecx, 0xffff
movzx ecx, cx
mov edx, dword [ebp - 0x34]
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 - 0x34]
mov word [edx + ecx], ax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x100093bb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x1000938c
cmp dword [ebp - 0x38], 0
je 0x10009539
cmp dword [ebp - 0x44], 0
jbe 0x10009539
cmp dword [ebp - 0x10], 4
jne 0x10009539
lea eax, [ebp - 8]
push eax
push 0x20
push dword [ebp - 0x44]
push dword [ebp - 0x38]
call dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x16]
and eax, 0x1000
je 0x10009555
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x70]
mov dword [ebp - 0x34], ecx
jmp 0x10009561
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x34], ecx
push dword [ebp + 8]
push 1
push dword [ebp - 0x40]
call dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
leave
ret 4