Function at 0x10009681
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 0x1000969a
pop dword [ebp - 0x6c]
xor eax, eax
inc eax
je 0x100096e6
mov eax, dword [ebp - 0x6c]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100096dd
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x40
jb 0x100096dd
cmp dword [ebp - 0xc], 0x400
jae 0x100096dd
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 0x100096dd
jmp 0x100096e6
mov eax, dword [ebp - 0x6c]
dec eax
mov dword [ebp - 0x6c], eax
jmp 0x1000969d
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 0x10009791
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 0x10009749
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 0x10009755
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 0x10009723
cmp dword [ebp - 4], 0x6a4abc5b
jne 0x10009784
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x40], eax
jmp 0x10009791
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jmp 0x10009701
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 0x10009910
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 0x100097eb
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xec0e4e8e
je 0x10009851
cmp dword [ebp - 0x28], 0x7c0dfcaa
je 0x10009851
cmp dword [ebp - 0x28], 0x91afca54
je 0x10009851
cmp dword [ebp - 0x28], 0x7946c61b
je 0x10009851
cmp dword [ebp - 0x28], 0x753a4fc
je 0x10009851
cmp dword [ebp - 0x28], 0xd3324904
jne 0x100098fa
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 0x10009882
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x100098ee
cmp dword [ebp - 0x28], 0x7c0dfcaa
jne 0x10009898
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
jmp 0x100098ee
cmp dword [ebp - 0x28], 0x91afca54
jne 0x100098ae
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
jmp 0x100098ee
cmp dword [ebp - 0x28], 0x7946c61b
jne 0x100098c4
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x100098ee
cmp dword [ebp - 0x28], 0x753a4fc
jne 0x100098da
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax]
mov dword [ebp - 0x58], ecx
jmp 0x100098ee
cmp dword [ebp - 0x28], 0xd3324904
jne 0x100098ee
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 0x100097d0
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 0x10009933
mov dword [ebp - 0x10], 0x40
jmp 0x1000993a
mov dword [ebp - 0x10], 4
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x16]
and eax, 0x4000
je 0x100099f0
mov eax, dword [ebp - 0x6c]
add eax, 0x40
push eax
call dword [ebp - 0x24]
test eax, eax
jne 0x100099f0
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 0x10009983
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x70], 0xffffffff
je 0x100099a3
cmp dword [ebp - 4], 0x10
jae 0x100099a3
cmp dword [ebp - 0x40], 0
jne 0x100099a3
push dword [ebp - 4]
push dword [ebp - 0x70]
call dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
jmp 0x1000997c
cmp dword [ebp - 0x40], 0
je 0x100099f0
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 0x10009a19
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 0x10009a5d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x40], ecx
jmp 0x10009a95
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 0x10009a95
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 0x10009b0e
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 0x10009b03
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 0x10009ab0
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 0x10009c7d
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 0x10009b4f
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x40
jae 0x10009b6e
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 0x10009b48
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 0x10009c6f
cmp dword [ebp - 0x1c], 0
je 0x10009c00
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0x80000000
je 0x10009c00
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 0x10009c52
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 0x10009c25
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x40
jae 0x10009c44
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 0x10009c1e
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 0x10009c6a
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x10009b8e
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
jmp 0x10009b24
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 0x10009e42
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 0x10009e42
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 0x10009e31
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 0xa
jne 0x10009d3d
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 0x10009e24
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 3
jne 0x10009d83
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 0x10009e24
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 1
jne 0x10009dd6
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 0x10009e24
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
shr ax, 0xc
and ax, 0xf
movzx eax, ax
cmp eax, 2
jne 0x10009e24
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 0x10009ce5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x10009cb6
cmp dword [ebp - 0x38], 0
je 0x10009e63
cmp dword [ebp - 0x44], 0
jbe 0x10009e63
cmp dword [ebp - 0x10], 4
jne 0x10009e63
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 0x10009e7f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
add ecx, dword [eax + 0x70]
mov dword [ebp - 0x34], ecx
jmp 0x10009e8b
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