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

Disassembly:
mov ecx, dword [0x66b1a5d0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x669f86b5
sub esp, 0xd8
lea edi, [esp + 0xe4]
xor eax, eax
call fcn.669e3479
lea ecx, [0x66a4c760]
mov dword [esp], ecx
call fcn.6698bd20
mov ecx, dword [esp + 4]
mov dword [esp + 0x80], ecx
lea edi, [esp + 0xb4]
xor eax, eax
call fcn.669e3487
mov ecx, dword [esp + 0xe0]
test ecx, ecx
jne 0x669f8102
xor ecx, ecx
jmp 0x669f816a
lea eax, [esp + 0xb4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.669f7680
mov eax, dword [esp + 8]
test eax, eax
je 0x669f8161
movzx ebp, byte [esp + 0xc]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x669f8144
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp]
test eax, 0x1f
jne 0x669f8601
xor eax, eax
jmp 0x669f8642
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp]
nop
test eax, 0x1f
jne 0x669f8569
xor eax, eax
jmp 0x669f858e
mov eax, 4
mov ecx, eax
xor eax, eax
mov ebp, dword [esp + 0xdc]
movzx edx, byte [ebp + 0xc]
test dl, 1
je 0x669f8181
mov edx, 0x34
jmp 0x669f8186
mov edx, 0x24
movzx ebx, word [ebp + 0x20]
test bx, bx
jne 0x669f8195
xor ebx, ebx
xor edx, edx
jmp 0x669f81a6
movzx ebx, bx
add edx, ebp
cmp ebx, 0x10000
ja 0x669f855d
mov dword [esp + 0x28], ebx
mov dword [esp + 0x7c], edx
xor esi, esi
jmp 0x669f81cc
mov ecx, dword [esp + 0x44]
lea esi, [ecx + 1]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xdc]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x34], ecx
cmp ebx, esi
jle 0x669f82c4
mov dword [esp + 0x44], esi
mov eax, dword [edx + esi*4]
mov dword [esp + 0x88], eax
lea ecx, [esp + 0xb4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.669f7470
mov eax, dword [esp + 8]
test eax, eax
jne 0x669f829a
mov ebp, dword [esp + 0x88]
movzx eax, byte [ebp + 0xd]
mov ecx, ebp
mov ebp, dword [esp + 0x34]
lea ebp, [ebp + eax - 1]
neg eax
and eax, ebp
mov ebp, dword [esp + 0xc4]
add eax, dword [ecx]
mov ecx, ebp
mov ebp, dword [esp + 0x44]
cmp ebp, ecx
jae 0x669f8556
mov edx, dword [esp + 0xc0]
lea ebx, [ecx - 1]
mov esi, dword [edx + ebp*4]
cmp ebp, ebx
jne 0x669f824f
mov ecx, dword [esp + 0xb8]
jmp 0x669f825e
lea ebx, [ebp + 1]
cmp ecx, ebx
jbe 0x669f854f
mov ecx, dword [edx + ebp*4 + 4]
mov edx, dword [esp + 0xbc]
cmp ecx, edx
ja 0x669f854a
cmp ecx, esi
jb 0x669f8543
mov ebx, dword [esp + 0xb4]
sub edx, esi
lea edi, [esi + esi*2]
neg edx
shl edi, 3
sar edx, 0x1f
and edx, edi
add edx, ebx
sub ecx, esi
mov dword [esp + 0x24], ecx
xor ebx, ebx
jmp 0x669f851f
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.669f9750
mov eax, dword [esp + 0x34]
jmp 0x669f81b2
mov edx, dword [esp + 0xcc]
lea ebx, [edx + 3]
and ebx, 0xfffffffc
nop
nop
lea edi, [esp + 0x90]
call fcn.669e3487
mov dword [esp + 0xa8], ebx
movzx ecx, word [ebp + 0x22]
and ecx, 0x7fff
nop
test cx, cx
jne 0x669f82fc
xor edi, edi
xor ecx, ecx
jmp 0x669f8347
movzx esi, byte [ebp + 0xc]
xchg esi, eax
test al, 1
xchg esi, eax
je 0x669f830e
mov esi, 0x34
jmp 0x669f8313
mov esi, 0x24
movzx edi, word [ebp + 0x20]
add ecx, edi
movzx ecx, cx
add ebp, esi
cmp ecx, 0x20000
ja 0x669f850b
movzx esi, di
cmp esi, ecx
ja 0x669f8504
sub ecx, esi
mov edi, ecx
neg ecx
shl esi, 2
sar ecx, 0x1f
and esi, ecx
lea ecx, [ebp + esi]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x78], ecx
xor ebp, ebp
jmp 0x669f8374
mov eax, dword [esp + 0x40]
lea ebp, [eax + 1]
xor eax, eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
cmp ebp, edi
jge 0x669f8443
mov dword [esp + 0x40], ebp
mov eax, dword [ecx + ebp*4]
mov dword [esp + 0x84], eax
lea edx, [esp + 0x90]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.669f7470
mov eax, dword [esp + 8]
test eax, eax
jne 0x669f841d
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x40]
cmp eax, ecx
jae 0x669f84ff
mov ebx, dword [esp + 0x9c]
lea ebp, [ecx - 1]
mov edx, dword [ebx + eax*4]
cmp eax, ebp
jne 0x669f83d2
mov ebx, dword [esp + 0x94]
jmp 0x669f83e1
lea ebp, [eax + 1]
cmp ecx, ebp
jbe 0x669f84f8
mov ebx, dword [ebx + eax*4 + 4]
mov ebp, dword [esp + 0x98]
cmp ebx, ebp
ja 0x669f84ef
cmp ebx, edx
jb 0x669f84e6
mov ecx, dword [esp + 0x90]
lea esi, [edx + edx*2]
sub ebp, edx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl esi, 3
sar ebp, 0x1f
and ebp, esi
add ecx, ebp
sub ebx, edx
xor edx, edx
jmp 0x669f84bb
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
call fcn.669f9750
jmp 0x669f835b
sub dword [esp + 0xa8], ebx
lea edi, [esp + 0xe4]
call fcn.669e3479
lea edi, [esp + 0xe4]
lea esi, [esp + 0xb4]
call fcn.669e3946
lea edi, [esp + 0x108]
lea esi, [esp + 0x90]
call fcn.669e3946
mov dword [esp + 0x12c], edx
mov dword [esp + 0x130], ebx
mov ecx, dword [esp + 0x34]
add ecx, 3
and ecx, 0xfffffffc
mov dword [esp + 0x134], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x138], ecx
add esp, 0xd8
ret
mov ebp, dword [esp + 0x8c]
lea ecx, [ebp + 0x18]
inc edx
cmp edx, ebx
jge 0x669f835b
mov dword [esp + 0x8c], ecx
lea edi, [esp + 0x48]
mov esi, ecx
call fcn.669e3964
cmp dword [esp + 0x48], 3
jne 0x669f84b0
nop
xor eax, eax
mov ecx, eax
call fcn.669e3300
mov eax, edx
mov ecx, ebx
call fcn.669e3360
mov ecx, ebx
mov edx, ebp
call fcn.669e3340
mov eax, ebp
call fcn.669e3300
call fcn.669e3300
mov eax, esi
call fcn.669e33a0
mov edx, ecx
mov ebx, 0x20000
call fcn.669e3380
add edx, 0x18
inc ebx
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jge 0x669f81b2
lea edi, [esp + 0x60]
mov esi, edx
call fcn.669e3964
cmp dword [esp + 0x60], 3
jne 0x669f8517
nop
xor eax, eax
mov ecx, eax
call fcn.669e3300
mov eax, esi
call fcn.669e3360
call fcn.669e3340
mov eax, ebx
call fcn.669e3300
mov eax, ebp
call fcn.669e3300
mov edx, ebx
mov ebx, 0x10000
call fcn.669e3380
mov ecx, dword [ebp + 8]
mov eax, dword [ebp]
shr eax, 3
cmp ecx, eax
jbe 0x669f8580
inc dword [ebp]
xor eax, eax
jmp 0x669f8166
call fcn.669e3310
mov dword [ebp + 8], edx
mov byte [edx + ebx - 1], 0
inc eax
cmp eax, 4
jge 0x669f8569
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
inc edx
mov ebx, dword [ebp + 4]
cmp ecx, edx
jae 0x669f8585
mov dword [esp + 0x38], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x66a472a0]
mov dword [esp + 0x10], eax
call fcn.669cac60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x80]
mov dword [ebx + 0xc], eax
mov eax, dword [0x66b1a6c0]
test eax, eax
je 0x669f85f4
call fcn.669e32b0
mov dword [edi], ecx
mov ebp, dword [ebx + 4]
mov dword [edi + 4], ebp
mov dword [ebx + 4], ecx
mov eax, dword [esp + 0x38]
mov ebp, ebx
mov ebx, ecx
jmp 0x669f8585
mov ecx, dword [ebp + 8]
mov eax, dword [ebp]
mov edx, eax
shr edx, 3
cmp ecx, edx
jbe 0x669f8632
mov ecx, dword [ebp + 4]
movzx ebx, byte [ecx + edx]
and eax, 7
mov esi, ecx
mov ecx, eax
mov edi, 1
shl edi, cl
or ebx, edi
mov byte [esi + edx], bl
inc dword [ebp]
jmp 0x669f8579
mov eax, edx
call fcn.669e3310
mov dword [ebp + 8], edx
mov byte [edx + ebx - 1], 0
inc eax
cmp eax, 4
jge 0x669f8601
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
inc edx
mov ebx, dword [ebp + 4]
cmp ecx, edx
jae 0x669f8639
mov dword [esp + 0x3c], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x66a472a0]
mov dword [esp + 0x10], eax
call fcn.669cac60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x80]
mov dword [ebx + 0xc], eax
mov eax, dword [0x66b1a6c0]
test eax, eax
je 0x669f86a8
call fcn.669e32b0
mov dword [edi], ecx
mov ebp, dword [ebx + 4]
mov dword [edi + 4], ebp
mov dword [ebx + 4], ecx
mov eax, dword [esp + 0x3c]
mov ebp, ebx
mov ebx, ecx
jmp 0x669f8639
call fcn.669e1e80
jmp fcn.669f80a0