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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x66d493
sub esp, 0x9c
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x66d47a
mov dword [esp + 0xb8], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], edx
movzx edx, byte [ecx + 0x34]
test dl, dl
jne 0x66d369
lea edx, [esp + 0x94]
mov ebx, 1
mov dword [esp + 0x24], ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x5c], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], edx
xor edx, edx
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x90], edx
cmp ebp, ebx
jge 0x66d351
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov eax, dword [edx]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x8c], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x78], esi
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0xb0]
cmp ebx, esi
jge 0x66d324
mov edi, dword [esp + 0x8c]
mov ebp, dword [edi + 4]
mov dword [esp + 0x70], ebp
mov edx, dword [edi]
mov dword [esp + 0x6c], edx
mov esi, dword [edx + 0x18]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], ebp
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x6c]
mov edx, dword [edx + 0x14]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xa8]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x66cf9b
mov ebx, dword [esp + 0x8c]
add ebx, 8
mov ebp, dword [esp + 0x2c]
inc ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x8c], ebx
mov esi, edx
mov dword [esp + 0x84], eax
mov edi, ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
jmp 0x66cec9
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x20], ebp
test edx, edx
je 0x66d1e8
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0xb8]
movzx ecx, byte [eax + 1]
test cl, cl
je 0x66d1ac
movzx ecx, byte [eax + 2]
test cl, cl
je 0x66d1a0
mov ecx, dword [esp + 0xa0]
mov ebx, dword [ecx + 0x10]
mov ebp, dword [ecx + 0x14]
mov dword [edx + 0x14], ebp
mov ebp, dword [0x884700]
lea esi, [edx + 0x10]
test ebp, ebp
jne 0x66d17d
mov dword [edx + 0x10], ebx
movzx ebx, byte [eax + 3]
test bl, bl
je 0x66d0d0
mov eax, dword [eax + 4]
test eax, eax
jle 0x66d075
mov ebx, dword [edx + 0x18]
mov ebp, dword [edx + 0x1c]
lea esi, [eax + 3]
cmp ebp, esi
jle 0x66d075
cmp eax, ebp
ja 0x66d0c9
mov dword [esp], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea eax, [0x704304]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 3
call fcn.0043a840
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov dword [edx + 0x1c], ecx
mov ecx, dword [0x884700]
lea ebx, [edx + 0x18]
test ecx, ecx
jne 0x66d0b7
mov dword [edx + 0x18], eax
mov eax, dword [0x884700]
mov ecx, dword [esp + 0xa0]
lea ebx, [ecx + 0x38]
test eax, eax
jne 0x66d0a9
mov dword [ecx + 0x38], edx
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
add esp, 0x9c
ret
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0040d5a0
jmp 0x66d08c
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040d5a0
mov edx, dword [esp + 0x78]
jmp 0x66d075
call fcn.004246e0
ud2
mov ebx, dword [edx + 0x18]
mov ebp, dword [edx + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
lea ebx, [0x719644]
mov dword [esp], ebx
call fcn.004ba470
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x78]
mov dword [edx + 0x1c], ecx
mov ecx, dword [0x884700]
lea ebx, [edx + 0x18]
test ecx, ecx
jne 0x66d16b
mov dword [edx + 0x18], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x719644]
mov dword [esp], eax
call fcn.004ba470
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x78]
mov dword [edx + 0x14], ecx
mov ecx, dword [0x884700]
lea ebx, [edx + 0x10]
test ecx, ecx
jne 0x66d159
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa0]
jmp 0x66d014
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040d5a0
mov edx, dword [esp + 0x78]
jmp 0x66d146
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040d5a0
mov edx, dword [esp + 0x78]
jmp 0x66d10b
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.0040d5a0
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x78]
jmp 0x66d008
mov ecx, dword [esp + 0xa0]
jmp 0x66d008
test ebp, ebp
je 0x66cfd8
mov dword [edx + 0x14], ebp
mov ecx, dword [0x884700]
lea ebp, [edx + 0x10]
test ecx, ecx
jne 0x66d1cc
mov dword [edx + 0x10], ebx
jmp 0x66cfd8
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.0040d5a0
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x78]
jmp 0x66cfd8
mov edx, dword [0x872848]
cmp ecx, edx
je 0x66d2ba
mov edx, dword [0x872848]
cmp ecx, edx
je 0x66d215
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
add esp, 0x9c
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [0x872848]
mov esi, dword [0x87284c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
call fcn.004022c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x66d24c
mov eax, dword [esp + 0xb8]
movzx ecx, byte [eax]
test cl, cl
jne 0x66d25c
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
jmp 0x66d200
lea ecx, [0x6f0de0]
mov dword [esp], ecx
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov dword [eax + 0x14], ebx
mov ebx, dword [0x884700]
lea ebp, [eax + 0x10]
test ebx, ebx
jne 0x66d2a1
mov dword [eax + 0x10], edx
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
mov edx, eax
jmp 0x66cfc1
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.0040d5a0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xa0]
jmp 0x66d292
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [0x872848]
mov esi, dword [0x87284c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
call fcn.004022c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x66d309
mov edx, dword [esp + 0xa0]
mov byte [edx + 0x3c], 1
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
jmp 0x66d1f6
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
jmp 0x66d1f6
add edx, 8
inc ebp
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x90], edx
cmp ebp, ebx
jl 0x66ce98
mov edx, esi
mov eax, dword [esp + 0x84]
mov ecx, edi
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
jmp 0x66cfa3
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x30], edx
mov ebx, dword [ecx + 0x2c]
mov dword [esp + 0x2c], ebx
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x90], ebp
lea esi, [ebx + 1]
mov dword [esp + 0x24], esi
cmp esi, 1
ja 0x66d418
mov edi, 1
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
cmp esi, edi
ja 0x66d411
cmp esi, 1
jb 0x66d411
lea ecx, [edi - 2]
sar ecx, 0x1f
xor ecx, 0xffffffff
and ecx, 8
mov eax, dword [esp + 0x88]
add ecx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
lea ecx, [edi - 1]
mov dword [esp + 0xc], ecx
lea ecx, [0x6b4960]
mov dword [esp], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.0040d910
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x24]
jmp 0x66ce4e
call fcn.004246e0
ud2
lea edi, [0x6b4960]
mov dword [esp], edi
lea ecx, [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], esi
call fcn.00437660
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x90]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xb8]
jmp 0x66d3ac
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x34]
jmp 0x66cdff
call fcn.004486b0
jmp fcn.0066cdd0