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

Disassembly:
push 0xffffffffffffffff
push 0x87f821
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xa
lea eax, [esp + 0x2c]
push eax
push 0x44522c
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 1
mov dword [esp + 0x38], ebp
call fcn.004b65f0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x64], 2
cmp dword [eax - 0xc], ebp
je 0x663f9e
jmp 0x663e30
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call fcn.005dfd30
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x30]
mov ecx, dword [esi - 0x10]
add eax, 8
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov byte [esp + 0x64], 4
call edx
cmp dword [esi - 4], ebp
lea edx, [esi - 4]
jl 0x663e86
cmp eax, dword [esi - 0x10]
jne 0x663e86
lea ebp, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x663ebe
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x663fff
mov eax, dword [esi - 0xc]
mov dword [ebp + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
add ebp, 0x10
mov dword [ecx], ebp
mov dword [esp + 0x24], edx
mov dword [edi + 4], 0
mov dword [edi], ebx
mov eax, dword [esp + 0x14]
inc dword [esp + 0x1c]
mov byte [esp + 0x64], 2
test eax, eax
je 0x663eee
mov dword [eax + 4], edi
jmp 0x663ef2
mov dword [esp + 0x18], edi
lea eax, [esp + 0x2c]
push eax
push 0x44522c
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], edi
call fcn.004b65f0
mov ecx, dword [eax]
mov esi, dword [esp + 0x30]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x64], 3
cmp eax, esi
je 0x663f6a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x663f5c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x663f5c
push eax
call fcn.004a9b50
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x663f53
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x30], ebx
jmp 0x663f6a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004a8db0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x663f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp dword [eax - 0xc], ebp
jne 0x663e30
add eax, 0xfffffff0
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x663fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 4
jbe 0x664004
lea ecx, [esp + 0x14]
call fcn.004afe70
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x663ff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x6641f1
call fcn.004a8580
mov esi, dword [esp + 0x14]
mov edi, 1
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0x3e8
mov dword [esp + 0x50], 0xea60
mov dword [esp + 0x54], 0x36ee80
cmp esi, ebp
je 0x664078
lea ebx, [esp + 0x48]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x66408c
mov edi, dword [esi + 8]
mov esi, dword [esi]
push 0xa
lea ecx, [esp + 0x38]
push ecx
push edi
mov dword [esp + 0x40], ebp
call fcn.00803f42
add esp, 0xc
cmp edi, dword [esp + 0x34]
jae 0x664096
mov edx, dword [ebx]
imul edx, eax
add dword [esp + 0x2c], edx
add ebx, 4
cmp esi, ebp
jne 0x664035
mov esi, dword [esp + 0x14]
mov edi, 1
mov byte [esp + 0x64], 0
cmp dword [esp + 0x1c], ebp
jbe 0x664197
jmp 0x664144
push 0x80004005
call fcn.004a8210
mov byte [esp + 0x64], 0
cmp dword [esp + 0x1c], ebp
jbe 0x6640f4
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x66408c
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6640d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword [esi], ecx
dec dword [esp + 0x1c]
mov dword [esp + 0x24], esi
jne 0x6640ee
lea ecx, [esp + 0x14]
call fcn.004afe70
cmp dword [esp + 0x1c], ebp
ja 0x6640a1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x66411d
mov esi, dword [eax]
push eax
call fcn.00803053
add esp, 4
mov eax, esi
cmp esi, ebp
jne 0x664108
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x663feb
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x66408c
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 8]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x664178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword [esi], ecx
sub dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
jne 0x664191
lea ecx, [esp + 0x14]
call fcn.004afe70
cmp dword [esp + 0x1c], ebp
ja 0x664140
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x6641c5
jmp 0x6641b0
mov esi, dword [eax]
push eax
call fcn.00803053
add esp, 4
mov eax, esi
cmp esi, ebp
jne 0x6641b0
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6641ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0080262b
add esp, 0x54
ret