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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4936e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
push 1
push 0xffffffffffffffff
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x46a918
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
mov dword [esp + 0x78], edi
mov dword [esp + 0x14], edi
push esi
mov byte [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x3c], edi
jbe 0x46a7c8
mov eax, dword [esi + 0x38]
mov ebx, dword [eax]
mov eax, dword [esi + 0x20]
add esi, 0x20
cmp eax, edi
jne 0x46a81f
call fcn.0047a626
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46a74c
call fcn.0047a626
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push edi
lea ecx, [esp + 0x54]
call fcn.0040bb80
mov eax, dword [esi + 0x18]
mov ebx, dword [eax]
mov eax, dword [esi]
cmp eax, edi
jne 0x46a826
call fcn.0047a626
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46a77b
call fcn.0047a626
mov eax, dword [esi + 0x18]
mov dl, byte [ebx + 0x2c]
mov ebx, dword [eax]
mov eax, dword [esi]
mov byte [esp + 0x38], dl
cmp eax, edi
jne 0x46a82d
call fcn.0047a626
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46a7a2
call fcn.0047a626
lea ecx, [ebx + 0x30]
lea ebx, [esp + 0x14]
call fcn.0046ae40
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push ecx
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0046ab40
mov esi, dword [esp + 0x3c]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x60], edi
je 0x46a8b6
sub esp, 0x20
mov eax, esp
mov dword [eax], edi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], esp
cmp ecx, edi
je 0x46a84c
mov dword [eax], ecx
test cl, 1
je 0x46a834
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x50]
mov dword [eax + 0x1c], edx
jmp 0x46a84c
mov eax, dword [eax]
jmp 0x46a742
mov eax, dword [eax]
jmp 0x46a771
mov eax, dword [eax]
jmp 0x46a798
mov ecx, dword [esp + 0x34]
add eax, 8
push edi
push eax
and ecx, 0xfffffffe
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push edx
call eax
add esp, 0xc
mov eax, dword [esp + 0x70]
mov ebx, 8
cmp dword [esp + 0x84], ebx
jae 0x46a862
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x58]
push ecx
push eax
call fcn.00469c10
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x46a89a
test al, 1
jne 0x46a896
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x46a896
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x14], edi
cmp dword [esp + 0x64], ebx
jb 0x46a6f6
mov edx, dword [esp + 0x50]
push edx
call fcn.00479461
add esp, 4
jmp 0x46a6f6
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x46a8e3
test al, 1
jne 0x46a8df
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, edi
je 0x46a8df
lea ecx, [esp + 0x1c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x46a8ff
mov eax, dword [esp + 0x50]
push eax
call fcn.00479461
add esp, 4
mov ecx, dword [esi + 0x1c]
push 1
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
jne 0x46a6f6
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047946c
mov esp, ebp
pop ebp
ret