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

Disassembly:
sub esp, 0x878
mov eax, dword [0x6b66bc]
xor eax, esp
mov dword [esp + 0x874], eax
mov eax, dword [esp + 0x87c]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
cmp dword [ebx + 0x20c], 0
je 0x4a6a8e
push esi
lea esi, [ebx + 0x25c]
mov dword [esp + 0x870], 0
push edi
or edi, 0xffffffff
mov dword [esp + 0x878], 0
mov dword [esp + 0x87c], 0x40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4a6692
call fcn.00609380
nop
int3
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [esp + 0x3c], eax
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x44], 0
je 0x4a67ce
mov ecx, dword [esp + 0x878]
mov edx, dword [ebx + 0x20c]
lea eax, [edx + ecx]
mov dword [esp + 0x878], eax
cmp eax, dword [esp + 0x87c]
jle 0x4a66dc
push ecx
lea ecx, [esp + 0x78]
call fcn.004aeef0
mov edx, dword [ebx + 0x20c]
xor ecx, ecx
mov dword [esp + 0x10], ecx
test edx, edx
jle 0x4a67c4
xor edx, edx
lea esi, [ebx + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x878]
jl 0x4a6727
lea eax, [esp + 0x28]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
call fcn.0060bfa0
add esp, 4
nop
int3
mov eax, dword [esp + 0x874]
lea ebx, [esp + 0x74]
test eax, eax
mov dword [esp + 0x2c], ecx
cmovne ebx, eax
add ebx, edx
cmp ecx, dword [esi + 0x204]
jl 0x4a6764
lea eax, [esp + 0x2c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
call fcn.0060bf40
add esp, 4
nop
int3
mov eax, dword [esi + 0x200]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + edx]
add ecx, edx
mov dword [ebx], eax
add edx, 0x20
mov dword [esp + 0xc], edx
movups xmm0, xmmword [ecx + 4]
movups xmmword [ebx + 4], xmm0
movsd xmm0, qword [ecx + 0x14]
movsd qword [ebx + 0x14], xmm0
mov al, byte [ecx + 0x1c]
mov byte [ebx + 0x1c], al
mov al, byte [ecx + 0x1d]
mov byte [ebx + 0x1d], al
mov ebx, dword [esp + 0x18]
mov dword [ecx], 0
mov byte [ecx + 0x1d], 0
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebx + 0x20c]
jl 0x4a66f3
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x44], 0
jne 0x4a67df
mov eax, dword [esp + 0x88c]
cmp dword [eax + 0x44], 0
je 0x4a68e9
mov ebx, dword [ebx + 0x240]
test ebx, ebx
je 0x4a683c
mov edi, dword [ebx + 0x8040]
lea ecx, [ebx + 0x8030]
test edi, edi
js 0x4a67fe
cmp edi, dword [ecx + 8]
jl 0x4a680b
call fcn.006093e0
nop
int3
mov eax, dword [ecx + 4]
test eax, eax
cmovne ecx, eax
mov eax, edi
cdq
and edi, 0x1f
and edx, 0x1f
mov dword [esp + 0x1c], ecx
add eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 5
mov ecx, dword [ecx + eax*4]
bts ecx, edi
mov dword [edx + eax*4], ecx
mov edi, dword [ebx + 0x8040]
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x18]
add ecx, 8
mov ebx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x200]
test eax, eax
cmovne ebx, eax
mov eax, dword [ecx + 0x204]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a6886
cmp byte [ebx + 0x1d], 0
jne 0x4a6876
push dword [ebx]
call fcn.0043f8f0
mov eax, dword [esp + 0x10]
add esp, 4
add ebx, 0x20
sub eax, 1
mov dword [esp + 0xc], eax
jne 0x4a6862
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x208], 0
mov dword [ecx + 0x204], 0
je 0x4a68a0
push 0
call fcn.004af190
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 0x240]
test edx, edx
je 0x4a68e9
mov eax, dword [edx + 0x8040]
inc eax
and eax, 0x80000003
jns 0x4a68c1
dec eax
or eax, 0xfffffffc
inc eax
imul ecx, eax, 0x200c
add ecx, edx
mov dword [edx + 0x8040], eax
cmp dword [ecx + 0x2008], 0
mov dword [ecx + 0x2004], 0
je 0x4a68e9
push 0
call fcn.004af1f0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x3c], eax
test esi, esi
je 0x4a68f9
push esi
call eax
mov eax, dword [esp + 0x874]
lea ecx, [esp + 0x74]
mov edx, dword [esp + 0x878]
test eax, eax
cmovne ecx, eax
shl edx, 5
add edx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], edx
cmp ecx, edx
je 0x4a69ee
mov esi, dword [esp + 0x14]
nop dword [eax]
mov eax, dword [ecx]
mov ebx, esi
movups xmm0, xmmword [ecx + 4]
mov dword [esp + 0x20], eax
mov al, byte [ecx + 0x1c]
mov byte [esp + 0x30], al
mov eax, dword [esi + 0x40]
test eax, eax
movups xmmword [esp + 0x64], xmm0
cmovne ebx, eax
mov eax, dword [esi + 0x44]
movsd xmm0, qword [ecx + 0x14]
movsd qword [esp + 0x50], xmm0
lea eax, [ebx + eax*4]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x4a69cc
mov edi, dword [esp + 0x20]
mov esi, eax
nop
mov ecx, dword [ebx]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4a698a
cmp byte [esp + 0x890], al
je 0x4a69b9
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x68]
call fcn.004c96a0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push edx
push dword [esp + 0x3c]
push edi
call dword [eax + 4]
add ebx, 4
cmp ebx, esi
jne 0x4a6970
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
add ecx, 0x20
mov dword [esp + 0xc], ecx
cmp ecx, edx
jne 0x4a6930
mov eax, dword [esp + 0x874]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test edi, edi
js 0x4a6a49
test esi, esi
jne 0x4a69fd
call fcn.00609380
nop
int3
push esi
call dword [esp + 0x3c]
mov ebx, dword [ebx + 0x240]
add ebx, 0x8030
cmp edi, dword [ebx + 8]
jl 0x4a6a1a
call fcn.006093e0
nop
int3
mov eax, dword [ebx + 4]
test eax, eax
cmovne ebx, eax
mov eax, edi
cdq
and edi, 0x1f
and edx, 0x1f
add eax, edx
sar eax, 5
mov ecx, dword [ebx + eax*4]
btr ecx, edi
mov dword [ebx + eax*4], ecx
test esi, esi
je 0x4a6a42
push esi
call dword [esp + 0x40]
mov eax, dword [esp + 0x874]
mov edi, dword [esp + 0x878]
lea esi, [esp + 0x74]
test eax, eax
cmovne esi, eax
test edi, edi
je 0x4a6a7f
nop dword [eax]
cmp byte [esi + 0x1d], 0
jne 0x4a6a70
push dword [esi]
call fcn.0043f8f0
add esp, 4
add esi, 0x20
sub edi, 1
jne 0x4a6a60
mov eax, dword [esp + 0x874]
pop edi
pop esi
test eax, eax
je 0x4a6a8e
push eax
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0x878]
pop ebx
xor ecx, esp
call fcn.005f4480
add esp, 0x878
ret 0xc