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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
test esi, esi
jne 0x46b7d1
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x4c8]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.0047ac20
test eax, eax
je 0x46b7f4
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.0047acd0
lea eax, [edi + 0x1c]
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x46bab7
nop dword [eax]
cmp ebx, 0x28
jb 0x46bab7
mov eax, dword [esi + 0x20]
sub ebx, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [ebp + 8], esi
mov edi, dword [eax + 0xbc]
lea eax, [edi + 4]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.004294b0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46b8ea
cmp dword [ecx + 0x10], 0
jne 0x46b8ea
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x50]
mov edi, dword [ebp - 0x14]
shr eax, 8
dec eax
mov dword [ebp - 0x1c], 1
movzx eax, al
mov dword [ebp + 0xc], eax
cmp edx, edi
jae 0x46b893
mov eax, dword [ebp - 8]
add eax, 0x78
cmp edi, eax
jae 0x46b893
mov dword [ecx + 0x50], edi
mov edx, edi
mov edi, dword [ebp - 8]
lea eax, [edi + 0x78]
cmp edx, eax
jbe 0x46b8a4
mov dword [ecx + 0x50], 0
cmp dword [ebp + 0xc], 5
jne 0x46b8dc
mov edx, dword [ebp - 0x18]
mov eax, 0xff
test edx, edx
cmove edx, eax
movzx eax, byte [ecx + 0x43]
or edx, eax
cmp edx, 0xff
jne 0x46b8cc
movzx edx, byte [ecx + 0x42]
mov dword [ecx + 0x3c], edi
mov eax, dword [ecx + 0x40]
and eax, 0xffffff
shl edx, 0x18
or eax, edx
mov dword [ecx + 0x40], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
jmp 0x46b8fc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [ebp + 0xc], 0xff
cmp ebx, 4
jb 0x46bab7
mov edi, dword [esi + 0x28]
sub ebx, 4
add esi, 0x2c
test edi, edi
je 0x46b93b
cmp ebx, edi
jb 0x46bab7
cmp eax, 1
jne 0x46b937
mov ecx, dword [ebp - 4]
push edi
push esi
push dword [ebp + 8]
mov ecx, dword [ecx + 0x34]
call fcn.004adb00
test eax, eax
jne 0x46bab7
add esi, edi
sub ebx, edi
cmp ebx, 4
jb 0x46bab7
mov edi, dword [esi]
sub ebx, 4
add esi, 4
test edi, edi
je 0x46b971
cmp ebx, edi
jb 0x46bab7
mov ecx, dword [ebp - 4]
push 0
push edi
push esi
call fcn.0046cac0
cmp eax, 1
je 0x46bab7
add esi, edi
sub ebx, edi
cmp ebx, 4
jb 0x46bab7
mov edi, dword [esi]
sub ebx, 4
add esi, 4
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x46baac
cmp ebx, edi
jb 0x46bab7
test esi, esi
je 0x46bab7
lea eax, [edi - 0x20]
cmp eax, 0x1fe0
ja 0x46bab7
cmp dword [esi], 0x7d3
jne 0x46bab7
cmp dword [esi + 0x1c], eax
jne 0x46bab7
cmp dword [esi + 8], 0
je 0x46ba8e
cmp dword [ebp + 0xc], 0
jne 0x46ba8e
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax + 0x34]
call fcn.004ad470
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + 0x90]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 0x49c]
lea eax, [ebp + 0xc]
push eax
push dword [edx + 0x9c]
lea eax, [edx + 0x10]
push eax
push dword [ebp + 8]
call fcn.004a73f0
test eax, eax
jne 0x46ba8e
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
push dword [ecx + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x46ba8e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push ecx
mov eax, dword [eax + 0x34]
push dword [eax + 0x9c]
call fcn.004abd50
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
inc edi
push ecx
mov eax, dword [eax + 0x34]
push dword [eax + 0x9c]
call fcn.004abd50
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
push dword [ebp + 0xc]
mov dword [eax + 0xc], edi
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x14]
push dword [eax + 0x9c]
mov ecx, dword [ecx + 0x49c]
add eax, 0x10
push eax
push dword [ebp + 8]
call fcn.004a72a0
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46baa8
mov ecx, dword [ebp - 4]
push 0
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0046cac0
test eax, eax
jne 0x46bab7
add esi, edi
sub ebx, edi
mov edi, dword [ebp - 4]
test ebx, ebx
jne 0x46b810
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8