Function at 0x10066952
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x100ae134]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, edx
mov edx, ecx
push esi
xor esi, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x24], esi
mov eax, dword [edx + 4]
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], esi
mov eax, dword [eax + 0xf4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], esi
mov ecx, dword [eax + 0x180]
mov dword [esp + 0x38], ecx
mov ecx, eax
call fcn.1003e609
mov edi, esi
mov dword [esp + 0x54], esi
mov ecx, dword [eax + 0xc]
mov eax, dword [edx + 4]
lea edx, [ebx + 0x30]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0xe4]
mov eax, dword [eax + 0x228]
mov dword [esp + 0x48], eax
cmp dword [ebx + 0x2c], esi
jbe 0x10066fc1
mov eax, dword [edx]
imul ebx, eax, 0x64
imul esi, eax, 0x158
add ebx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], esi
mov dx, word [ebx + 0x38]
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
and dx, 4
je 0x10066a22
imul ecx, eax, 0x238
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
movzx eax, word [ecx + eax - 0x112]
mov ecx, dword [esp + 0x38]
imul eax, eax, 0x14
add eax, dword [ecx + 0x338]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x10]
mov ebx, dword [esp + 0x1c]
add eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0x30]
mov ecx, eax
mov dword [esp + 0x18], eax
and ecx, 0x8fff
test byte [ebx + 0x1c], 1
mov dword [esp + 0x2c], ecx
je 0x10066a8d
mov ecx, dword [ebx + 4]
add ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
test eax, 0x4000
je 0x10066a81
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
test byte [ebx + 0x1c], 2
je 0x10066a73
mov ecx, dword [ebx + 8]
add ecx, dword [ebp + 0xc]
test byte [ebx + 0x1c], 4
je 0x10066a97
mov ebx, dword [ebx + 0xc]
add ebx, dword [ebp + 0xc]
jmp 0x10066a99
test eax, 0x1000
je 0x10066a61
mov ecx, dword [ecx + 4]
jmp 0x10066a5d
xor ecx, ecx
mov eax, ecx
mov dword [esp + 0x10], eax
jmp 0x10066a67
xor ebx, ebx
test ebx, ebx
je 0x10066afc
cmp dword [ebx], 0xf
je 0x10066f9c
cmp dword [ebx], 0xd
je 0x10066f9c
cmp dword [ebx], 3
jne 0x10066aec
mov eax, dword [esp + 0x14]
test byte [eax + 0x2c], 0x60
je 0x10066ae1
mov eax, dword [esp + 0x20]
mov dword [eax], 3
mov eax, dword [esp + 0x30]
or dword [esi + eax - 0x154], 0xffffffff
or dword [esi + eax - 0x150], 0xffffffff
jmp 0x10066f9c
mov dword [ebx], 0xa
jmp 0x10066f9b
cmp dword [ebx], 0
je 0x10066afc
mov dword [ebx], 0xc
jmp 0x10066f9b
test eax, eax
je 0x10066f91
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp + 8]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
test dx, dx
je 0x10066db3
push 0xd
pop edx
cmp word [esp + 0x2c], dx
jne 0x10066b9c
mov eax, dword [eax]
test eax, eax
jne 0x10066b60
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov dword [esi + eax - 0x158], ecx
mov dword [esi + eax - 0x154], ecx
mov dword [esi + eax - 0x150], ecx
jmp 0x10066b8d
mov edx, dword [esp + 0x30]
mov dword [esi + edx - 0x158], eax
test ecx, ecx
je 0x10066b73
mov eax, dword [ecx]
jmp 0x10066b75
xor eax, eax
mov dword [esi + edx - 0x154], eax
mov dword [esi + edx - 0x150], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 0x20000000
mov eax, dword [esp + 0x40]
xor ecx, ecx
inc ecx
mov dword [eax + 0x10], ecx
jmp 0x10066f9c
mov edx, dword [esp + 0x20]
and dword [edx], 0
test ecx, ecx
je 0x10066be1
mov eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0x28]
jbe 0x10066c4e
mov eax, 0x4000
test word [ecx + 0x30], ax
jne 0x10066c4e
mov dword [edx], 8
test ebx, ebx
je 0x10066f9b
push 2
pop eax
mov dword [ebx], eax
jmp 0x10066f9b
mov ecx, dword [esp + 0x2c]
mov edx, 0x80
cmp dx, cx
jne 0x10066bf8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x28]
jmp 0x10066c4a
mov edx, 0x81
cmp dx, cx
je 0x10066c22
inc edx
cmp dx, cx
jne 0x10066c4e
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x44]
jne 0x10066c0d
sub ecx, edx
sar ecx, 1
add ecx, ecx
jmp 0x10066c30
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10066c27
sub ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x28]
cmp ecx, eax
jbe 0x10066c4e
mov ecx, 0x4000
test word [edx + 0x30], cx
jne 0x10066c4e
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 0x3a]
mov eax, 0x81
cmp ax, dx
jne 0x10066c84
xor eax, eax
push eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xe4]
mov ecx, dword [ecx + 0x228]
call fcn.10052888
test eax, eax
je 0x10066c84
xor eax, eax
inc eax
jmp 0x10066c86
xor eax, eax
mov ecx, dword [esp + 0x48]
push 0x20
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
mov edx, dword [esp + 0x44]
call fcn.1005a9a3
test eax, eax
jns 0x10066cf0
test byte [0x100af360], 2
je 0x10066ccc
push 0x28b
mov edx, 0x1001b7c8
mov ecx, eax
call fcn.10036de6
pop ecx
mov ecx, dword [esp + 0x24]
xor esi, esi
push esi
push esi
mov edx, 0x9cbd
lea ecx, [ecx + 0x2c]
call fcn.1003779f
mov eax, dword [esp + 0x20]
mov dword [eax], 8
jmp 0x10066bcf
cmp dword [esp + 0x18], 0
jne 0x10066d31
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + ecx - 0x154]
cmp eax, dword [edx + 0x28]
jg 0x10066ccc
mov eax, dword [esp + 0x10]
mov dword [esi + ecx - 0x158], eax
mov eax, dword [esp + 0xc]
mov dword [esi + ecx - 0x154], eax
mov eax, dword [esp + 0xc]
mov dword [esi + ecx - 0x150], eax
jmp 0x10066f9c
mov eax, dword [esp + 0x3c]
push dword [esp + 0x28]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x120]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10066d6a
mov eax, dword [esp + 0x24]
xor ecx, ecx
inc ecx
or word [eax + 0x3c], cx
jmp 0x10066bcf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push 2
pop ecx
or word [eax + 0x38], cx
mov eax, dword [esp + 0x3c]
push dword [edx]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x120]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [ecx], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
jmp 0x10066ec7
mov eax, dword [esp + 0x2c]
movzx esi, ax
test ecx, ecx
je 0x10066e08
mov ecx, dword [ecx]
lea eax, [esi - 0x80]
push 2
pop edx
mov dword [esp + 0xc], ecx
cmp eax, edx
ja 0x10066e99
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x28]
jbe 0x10066e99
mov edx, 0x4000
test dword [esp + 0x18], edx
jne 0x10066e99
mov ecx, dword [esp + 0x24]
xor esi, esi
push esi
push esi
mov edx, 0x9cbd
lea ecx, [ecx + 0x2c]
call fcn.1003779f
jmp 0x10066bcf
mov eax, esi
sub eax, 8
je 0x10066e68
sub eax, 0x78
je 0x10066e4c
sub eax, 1
je 0x10066e3a
sub eax, 1
jne 0x10066e5b
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x44]
jne 0x10066e25
sub ecx, edx
sar ecx, 1
add ecx, ecx
jmp 0x10066e71
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10066e41
sub ecx, edx
jmp 0x10066e71
mov eax, dword [esp + 0x18]
mov ecx, 0x4000
test ecx, eax
je 0x10066e5f
jmp 0x10066dee
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x3c]
jmp 0x10066e75
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 4]
mov eax, dword [esp + 0x18]
mov edx, 0x4000
mov dword [esp + 0xc], ecx
test edx, eax
jne 0x10066e99
push 2
lea eax, [esi - 0x80]
pop edx
cmp eax, edx
ja 0x10066e99
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx + 0x28]
ja 0x10066dee
mov edx, dword [esp + 0x14]
mov esi, 0x81
movzx eax, word [edx + 0x3a]
cmp si, ax
je 0x10066ec0
inc esi
cmp si, ax
je 0x10066ec0
mov esi, 0x83
cmp si, ax
je 0x10066ec0
mov edx, dword [edx + 0x28]
jmp 0x10066ec3
mov edx, dword [edx + 0x3c]
mov dword [esp + 0x28], edx
test ebx, ebx
je 0x10066ecf
mov esi, dword [ebx]
jmp 0x10066ed3
xor eax, eax
mov esi, eax
push ecx
push ecx
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x45]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x44]
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x4c]
movzx eax, word [eax + 0x30]
push eax
push esi
push dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x78]
call fcn.1005b698
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x10066f20
test ebx, ebx
je 0x10066f20
mov dword [ebx], ecx
test eax, eax
js 0x10066f5f
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov dword [ecx + edx - 0x158], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
mov dword [ecx + edx - 0x154], eax
test byte [ebx + 0x38], 4
je 0x10066f9c
mov dword [ecx + edx - 0x150], eax
jmp 0x10066f9c
test byte [0x100af360], 2
je 0x10066f7a
push 0x327
mov edx, 0x1001b7c8
mov ecx, eax
call fcn.10036de6
pop ecx
mov ecx, dword [esp + 0x24]
xor eax, eax
push eax
push eax
mov edx, 0x9cbd
lea ecx, [ecx + 0x2c]
call fcn.1003779f
jmp 0x10066f9b
test ebx, ebx
je 0x10066f9b
mov dword [ebx], 8
inc edi
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
inc ecx
mov edx, dword [esp + 0x1c]
add edx, 0x34
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], edx
cmp ecx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x60]
jb 0x100669d3
mov ecx, dword [esp + 0x64]
neg edi
sbb edi, edi
and edi, 0x80004005
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100365c0
mov esp, ebp
pop ebp
ret 8