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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov edi, dword [ecx + 4]
and dword [ecx + 4], 0
test edi, edi
je 0x46c8cf
mov ebx, ecx
lea ecx, [edi + 0x228]
mov dword [esp + 8], edi
call fcn.00461578
and dword [edi + 0x228], 0
cmp byte [edi + 0x258], 0
je 0x46c7fb
mov edx, dword [edi + 0x1e8]
mov ecx, dword [edi + 0x1ec]
mov esi, dword [edi + 0x1f4]
mov eax, dword [edi + 0x1f0]
test dx, dx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], esi
je 0x46c42f
shr edx, 0x10
cmp dx, 5
jne 0x46c42d
cmp cx, 7
jne 0x46c42d
test ecx, 0xfffc0000
je 0x46c42f
jmp 0x46c451
ja 0x46c451
test ax, ax
je 0x46c50a
lea ecx, [esp + 0xa2]
mov edx, 0x63f64c
call fcn.004605ca
test al, al
je 0x46c50a
mov dword [esp + 4], ebx
lea ebx, [esp + 0x30]
mov edx, edi
mov ecx, ebx
push 0
push 0x6c4590
push 0x1f
call fcn.00461c78
add esp, 0xc
mov eax, dword [ebx]
cmp eax, 8
jne 0x46c522
lea ebx, [esp + 0x30]
mov edx, edi
mov ecx, ebx
call fcn.004639b1
mov eax, dword [ebx]
cmp eax, 8
jne 0x46c550
lea ebx, [esp + 0x30]
mov edx, edi
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ecx, ebx
mov dword [esp + 0xc], eax
push dword [ebx + 0xc]
push esi
call fcn.0046c8e1
pop eax
pop ecx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, eax
xor ecx, 2
or ecx, edx
jne 0x46c62f
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x48]
movsd xmm2, qword [esp + 0x38]
movsd xmm3, qword [esp + 0x40]
mov ecx, dword [esp + 0xc]
mov edx, esi
movsd qword [esp + 0xc0], xmm0
movsd qword [esp + 0x10], xmm2
movsd qword [esp + 0x18], xmm3
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x28], xmm0
call fcn.00563c9c
mov eax, dword [esp + 0x10]
jmp 0x46c584
lea ecx, [esp + 0x68]
lea edx, [esp + 8]
push 0x63f654
call fcn.0046ccc0
pop eax
jmp 0x46c7ea
mov ecx, dword [esp + 0x4c]
movsd xmm0, qword [esp + 0x44]
movsd xmm2, qword [esp + 0x34]
movsd xmm1, qword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
movsd qword [esp + 0x24], xmm0
movsd qword [esp + 0x1c], xmm1
movsd qword [esp + 0x14], xmm2
jmp 0x46c580
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
movsd qword [esp + 0x20], xmm0
movsd qword [esp + 0x28], xmm1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 4]
cmp eax, 2
je 0x46c5d0
mov cl, 1
cmp eax, 8
je 0x46c6cd
movsd xmm1, qword [esp + 0x20]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
movsd qword [esp + 0x78], xmm1
movsd xmm1, qword [esp + 0x18]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x68], xmm2
movsd qword [esp + 0x70], xmm1
jmp 0x46c7ea
lea ebx, [esp + 0x30]
lea edx, [esp + 8]
mov ecx, ebx
push 0x63f654
call fcn.0046ccc0
pop eax
mov eax, dword [ebx]
cmp eax, 8
jne 0x46c5f3
xor ecx, ecx
jmp 0x46c6cd
mov ecx, dword [esp + 0x4c]
movsd xmm0, qword [esp + 0x44]
movsd xmm2, qword [esp + 0x34]
movsd xmm1, qword [esp + 0x3c]
mov ebx, dword [esp + 4]
mov dword [esp + 0x84], ecx
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x74], xmm1
movsd qword [esp + 0x6c], xmm2
mov dword [esp + 0x68], eax
jmp 0x46c7e1
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x48]
movsd xmm2, qword [esp + 0x38]
movsd xmm3, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x58]
movsd xmm5, qword [esp + 0x60]
lea ecx, [esp + 0xc8]
movsd qword [esp + 0xc0], xmm0
movsd qword [esp + 0xb8], xmm1
movsd qword [esp + 0xb0], xmm3
movsd qword [esp + 0xa8], xmm2
movsd qword [ecx + 0x28], xmm4
movsd qword [ecx + 0x30], xmm5
movsd qword [ecx + 8], xmm2
movsd qword [ecx + 0x10], xmm3
movsd qword [ecx + 0x18], xmm1
movsd qword [ecx + 0x20], xmm0
mov dword [ecx + 4], edx
mov dword [ecx], eax
call fcn.0046161e
lea ecx, [edi + 0x1f8]
mov byte [edi + 0x25a], 0
call fcn.0046cc53
mov ecx, dword [esp + 0xc]
mov edx, esi
mov dword [esp + 0x10], 8
call fcn.00563c9c
mov cl, 1
mov edx, dword [edi + 0x248]
lea edi, [esp + 0x30]
mov dword [esp + 0xc], ecx
mov ecx, edi
call fcn.00464453
mov esi, dword [edi + 4]
mov eax, dword [edi]
imul edi, dword [edi + 8], 0xc
lea ecx, [esi + edi]
lea ebx, [esi + 0xc]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0xd4], ecx
test edi, edi
je 0x46c75f
mov eax, dword [esi]
cmp eax, 0x80000000
je 0x46c766
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x94], edx
lea edx, [esp + 8]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x30]
push eax
call fcn.0046c0a4
pop eax
mov edx, dword [esp + 0x30]
cmp edx, 8
jne 0x46c78b
add esi, 0xc
add edi, 0xfffffff4
add ebx, 0xc
jmp 0x46c70d
mov ebx, dword [esp + 0x88]
lea ecx, [esp + 0xc8]
mov dword [ecx + 8], ebx
call fcn.0046359c
cmp byte [esp + 0xc], 0
mov ebx, dword [esp + 4]
jne 0x46c7f7
lea ecx, [esp + 0x10]
call fcn.004611c8
jmp 0x46c7f7
movsd xmm1, qword [esp + 0x3c]
movsd xmm0, qword [esp + 0x34]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xc8]
mov esi, edx
mov dword [ecx + 8], ebx
movsd qword [esp + 0x74], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [esp + 0x6c], xmm0
mov dword [esp + 0x84], eax
movsd qword [esp + 0x7c], xmm1
mov dword [esp + 0x68], edx
call fcn.0046359c
cmp byte [esp + 0xc], 0
mov ebx, dword [esp + 4]
je 0x46c7e1
mov edx, esi
jmp 0x46c887
lea ecx, [esp + 0x10]
call fcn.004611c8
mov edx, dword [esp + 0x68]
cmp edx, 8
jne 0x46c887
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x248]
lea esi, [esp + 0x30]
mov ecx, esi
mov al, byte [eax + 0x100]
mov byte [edi + 0x258], al
mov dword [esp + 0x100], 8
mov edi, dword [ebx]
lea edx, [edi + 8]
call fcn.00463008
mov ebx, dword [esi]
test ebx, ebx
je 0x46c848
lock dec dword [edi + 0x28]
cmp dword [esp + 0x30], 0
je 0x46c875
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.0045494f
jmp 0x46c875
mov esi, dword [esp + 0x34]
movzx eax, byte [esp + 0x38]
mov edx, dword [esp + 8]
lea ecx, [esi + 8]
mov dword [esp + 4], eax
call fcn.0046337d
mov edx, dword [esp + 4]
mov ecx, esi
call fcn.0046c8d7
add edi, 0x24
push edi
call sub.KERNEL32.DLL_WakeConditionVariable
lea ecx, [esp + 0x100]
call fcn.00461c68
test ebx, ebx
jne 0x46c8c6
jmp 0x46c8cf
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x100]
movsd xmm0, qword [esp + 0x7c]
movsd xmm2, qword [esp + 0x6c]
movsd xmm1, qword [esp + 0x74]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx]
movsd qword [ecx + 0x14], xmm0
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm2
mov dword [ecx], edx
lock dec dword [eax + 0x28]
call fcn.00461c68
mov ecx, dword [esp + 8]
call fcn.00461286
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret