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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov al, byte [esi + 0x11]
test al, al
je 0x4fd6a4
lea eax, [esi + 0x70]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, 1
mov eax, 0
lock cmpxchg dword [ecx], edx
test eax, eax
jne 0x4fd6a4
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push ebx
push edi
call dword [edx + 4]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [esi + 4]
lea edx, [eax + eax]
add eax, ecx
shl eax, 3
lea ebx, [ecx + ecx]
dec edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
lea eax, [edi + 1]
add ebx, edx
push eax
mov dword [ebp - 0xc], edx
shl ebx, 3
call fcn.004f5320
test al, al
je 0x4fd680
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x4fd680
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.004f52e0
test al, al
je 0x4fd680
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x4fd680
lea edx, [ebp - 4]
push edx
push eax
call fcn.004f52e0
test al, al
je 0x4fd680
mov ecx, dword [esi + 4]
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x78]
sar eax, 2
add eax, edx
cmp eax, ecx
jle 0x4fd680
mov eax, dword [esi + 0x3c]
mov cl, byte [eax + 0x20]
test cl, cl
mov dword [ebp - 0x18], eax
je 0x4fd3f0
call dword [0x4a411164]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
je 0x4fd3f0
lea edx, [esi + 0x44]
lea eax, [edx + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
lea ecx, [edx + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
mov eax, dword [edx + 0x1c]
test eax, eax
jg 0x4fd3e9
mov eax, dword [edx + 0x14]
test eax, eax
jle 0x4fd3f0
mov ecx, edx
call fcn.004f4d50
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push 0
push ebx
push edi
call dword [edx + 8]
mov edi, eax
test edi, edi
mov eax, dword [ebp - 0xc]
lea ebx, [edi + eax*8]
je 0x4fd454
test eax, eax
jle 0x4fd42f
mov ecx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fd420
call fcn.004f4a60
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add ecx, 8
dec eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
jne 0x4fd414
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
jle 0x4fd454
jmp 0x4fd440
mov dword [ebx + eax*8], 0xffffffff
mov dword [ebx + eax*8 + 4], 0xffffffff
inc eax
cmp eax, ecx
jl 0x4fd440
mov eax, dword [esi + 0x3c]
mov cl, byte [eax + 0x20]
test cl, cl
mov dword [ebp - 0x18], eax
je 0x4fd4a7
call dword [0x4a411164]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
je 0x4fd4a7
lea edx, [esi + 0x44]
lea eax, [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
lea eax, [edx + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
cmp dword [edx + 0xc], 1
je 0x4fd4a7
push 0xffffffffffffffff
mov ecx, edx
call fcn.004f4e50
test edi, edi
je 0x4fd67c
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0xc]
mov dword [esi + 4], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
mov edx, 0x20
sub edx, ecx
mov dword [esi + 0xc], edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
dec edx
mov dword [esi + 8], edx
mov edx, 0x20
sub edx, ecx
mov dword [esi + 0x28], edx
mov edx, 1
shl edx, cl
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
dec edx
test eax, eax
mov dword [esi + 0x24], edx
jle 0x4fd5b3
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x18], eax
mov edi, edi
mov al, byte [esi + 0x10]
test al, al
mov eax, dword [ebx]
jne 0x4fd561
test eax, eax
je 0x4fd5a3
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
imul edx, edx, 0xb0b38edb
mov edi, dword [esi + 8]
add eax, 0xfffffff0
shr edx, cl
mov ecx, dword [esi + 0x30]
and edx, edi
lea edi, [eax + 0x10]
lea edx, [ecx + edx*8]
lea eax, [ebx - 4]
push eax
mov ecx, edi
mov dword [ebp - 0x10], edx
call fcn.004f4a80
mov eax, dword [ebp - 0x10]
push eax
mov ecx, edi
call fcn.004f4ae0
mov eax, dword [ebx]
test eax, eax
jne 0x4fd521
jmp 0x4fd5a3
test eax, eax
je 0x4fd5a3
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0xc]
imul edx, edx, 0xb0b38edb
mov edi, dword [esi + 8]
add eax, 0xffffffe8
shr edx, cl
mov ecx, dword [esi + 0x30]
and edx, edi
lea edi, [eax + 0x18]
lea edx, [ecx + edx*8]
lea eax, [ebx - 4]
push eax
mov ecx, edi
mov dword [ebp - 0x10], edx
call fcn.004f4a80
mov eax, dword [ebp - 0x10]
push eax
mov ecx, edi
call fcn.004f4ae0
mov eax, dword [ebx]
test eax, eax
jne 0x4fd565
mov eax, dword [ebp - 0x18]
add ebx, 8
dec eax
mov dword [ebp - 0x18], eax
jne 0x4fd510
mov edi, dword [esi + 0x3c]
mov al, byte [edi + 0x20]
test al, al
je 0x4fd606
call dword [0x4a411164]
cmp eax, dword [edi + 4]
je 0x4fd606
lea edx, [esi + 0x44]
lea ecx, [edx + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
lea eax, [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
mov eax, dword [edx + 0x1c]
test eax, eax
jg 0x4fd5ff
mov eax, dword [edx + 0x14]
test eax, eax
jle 0x4fd606
mov ecx, edx
call fcn.004f4d50
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x4fd61d
mov edi, dword [ebp - 0x14]
mov ecx, edi
call fcn.004f4be0
add edi, 8
dec ebx
jne 0x4fd610
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [edx]
mov edi, dword [esi + 0x3c]
mov al, byte [edi + 0x20]
test al, al
je 0x4fd680
call dword [0x4a411164]
cmp eax, dword [edi + 4]
je 0x4fd680
lea edx, [esi + 0x44]
lea edi, [edx + 0xc]
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x20]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
lea ecx, [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
cmp dword [edi], 1
je 0x4fd680
push 0xffffffffffffffff
mov ecx, edx
call fcn.004f4e50
jmp 0x4fd680
mov byte [esi + 0x11], 0
add esi, 0x64
lea edx, [esi + 0xc]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
mov eax, 0
lock xchg dword [ecx], eax
mov eax, dword [esi + 0x10]
test eax, eax
pop edi
pop ebx
jle 0x4fd6a4
mov ecx, esi
call fcn.004f5260
pop esi
mov esp, ebp
pop ebp
ret