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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0xac
mov dword [esp], 1
lea ecx, [esp + 0x80]
call dword [0x66a20154]
mov eax, dword [edi + 0xbc]
lea edx, [edi + 0xbc]
sub esp, 4
mov esi, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], esi
test esi, esi
jle 0x6671ff38
mov esi, dword [0x66a2016c]
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x78], esi
jmp 0x6671fc8d
mov eax, dword [edi + 0xbc]
mov ecx, eax
add ebp, 1
cmp dword [esp + 0x74], ebp
je 0x6671fd68
lea ebx, [eax + ebp*4]
add ebx, dword [eax + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x6671fc80
mov esi, dword [ebx + 4]
and byte [esi + 0x109], 0xfe
test byte [esi + 0x100], 0x40
jne 0x6671fd16
mov eax, dword [ebx]
lea edx, [esp + 0x80]
lea ecx, [esp + 0x90]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], 2
call dword [eax + 0x84]
sub esp, 0xc
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x90]
call eax
mov eax, dword [ebx]
lea edx, [esp + 0x80]
mov dword [esp], ebx
lea ecx, [esp + 0x90]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xc
call dword [eax + 0x84]
sub esp, 0xc
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x90]
call eax
test byte [esi + 0x103], 1
je 0x6671fc78
lea ecx, [esp + 0x90]
mov dword [esp], 0x4b
sub ebx, 8
call dword [0x66a1ff2c]
sub esp, 4
lea eax, [esp + 0x90]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [0x66a1fb94]
lea ecx, [esp + 0x90]
call dword [0x66a1ff3c]
jmp 0x6671fc78
mov edx, dword [eax + 4]
cmp dword [esp + 0x74], edx
je 0x6671ff58
mov ebp, dword [esp + 0x74]
shl ebp, 2
je 0x6671fd8b
test dword [eax + 8], 0x7fffffff
jne 0x6671fec0
mov eax, dword [ecx + 8]
and eax, 0x7fffffff
cmp edx, eax
jge 0x6671fdbc
test edx, edx
je 0x66720010
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x7c]
mov dword [esp], edx
call fcn.667d7540
mov ecx, dword [edi + 0xbc]
sub esp, 8
cmp byte [ecx + 0xb], 0
js 0x6671feb0
mov eax, dword [edi + 4]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x66840c2a
mov dword [esp], eax
call dword [0x66a1fa7c]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x80]
call eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
and byte [ecx + 0xb], 0x7f
jmp 0x6671fdc6
mov edx, dword [eax]
cmp edx, 1
jbe 0x6671feec
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x7c]
and eax, 0x7fffffff
mov dword [esp], eax
call fcn.667d7540
mov eax, dword [edi + 0xbc]
sub esp, 8
mov edx, dword [eax + 0xc]
mov ebx, ebp
sar ebx, 2
add edx, eax
mov eax, dword [eax + 4]
add ebp, edx
mov dword [esp], edx
sub eax, ebx
mov dword [esp + 4], ebp
shl eax, 2
mov dword [esp + 8], eax
call fcn.6678ef38
mov ecx, dword [edi + 0xbc]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
sub edx, ebx
and eax, 0x7fffffff
mov dword [ecx + 4], edx
cmp edx, eax
jge 0x6671fdbc
jmp 0x6671fd97
jne 0x6671ff48
mov eax, dword [0x66a2016c]
mov dword [esp + 0x78], eax
jmp 0x6671fe92
mov esi, dword [0x66a2016c]
mov dword [esp + 0x78], esi
lea esi, [esi]
mov edx, dword [eax]
cmp edx, 1
jbe 0x6671ffbc
test dword [eax + 8], 0x7fffffff
jne 0x6671ff97
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 4
call dword [0x66a1f9e0]
mov dword [edi + 0xbc], eax
mov edx, eax
jmp 0x6671ffbe
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x7c]
and eax, 0x7fffffff
mov dword [esp], eax
call fcn.667d7540
mov eax, dword [edi + 0xbc]
sub esp, 8
mov edx, eax
mov edx, dword [edx]
cmp edx, 1
jbe 0x6671fffd
test dword [eax + 8], 0x7fffffff
jne 0x6672007d
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 4
call dword [0x66a1f9e0]
mov dword [edi + 0xbc], eax
mov dword [eax + 4], 0
jmp 0x6671fe92
mov ebx, dword [0x66a1f9dc]
mov dword [edi + 0xbc], ebx
mov eax, dword [ecx]
test eax, eax
je 0x6672002d
cmp eax, 0xffffffff
je 0x66720046
lock sub dword [ecx], 1
jne 0x66720046
mov dword [esp + 8], 4
mov dword [esp + 4], 4
mov dword [esp], ecx
call dword [0x66a1f9d8]
mov eax, dword [ebx]
test eax, eax
je 0x6672005f
cmp eax, 0xffffffff
je 0x6671fdc6
lock sub dword [ebx], 1
jne 0x6671fdc6
mov dword [esp + 8], 4
mov dword [esp + 4], 4
mov dword [esp], ebx
call dword [0x66a1f9d8]
jmp 0x6671fdc6
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x7c]
and eax, 0x7fffffff
mov dword [esp], eax
call fcn.667d7540
mov eax, dword [edi + 0xbc]
sub esp, 8
jmp 0x6671fffd