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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6195
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [ebx + 0x34], edi
je 0x464737
cmp dword [ebx + 0x38], edi
je 0x464737
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x464737
cmp word [eax], di
je 0x464737
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x464737
cmp word [esi], di
je 0x464737
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
jne 0x464502
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea esi, [esp + 0x30]
call fcn.004054c6
mov eax, esi
push eax
lea eax, [esp + 0x20]
push eax
lea edi, [ebx + 0xe4]
push edi
call fcn.0046762e
push 0
push 1
call fcn.0040568e
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
lea edi, [esp + 0x24]
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.0046b5c0
test al, al
jne 0x4644eb
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push dword [esp + 0x20]
push eax
lea eax, [ebx + 0xe4]
push eax
call fcn.004672a7
mov dword [esp + 0x18], 1
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x18], 0
jne 0x464737
xor edi, edi
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.0046474e
test eax, eax
jne 0x4646e3
lea eax, [esp + 0x2c]
push eax
call fcn.0042b360
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push eax
add ebx, 0xc4
mov dword [esp + 0x74], edi
call fcn.00464a6b
mov eax, dword [esp + 0x3c]
mov ecx, eax
sub ecx, dword [esp + 0x38]
xor ebx, ebx
sar ecx, 3
test ecx, ecx
jbe 0x4645e3
xor edi, edi
sub eax, dword [esp + 0x38]
sar eax, 3
cmp ebx, eax
jb 0x464562
call fcn.004d6d23
mov eax, dword [esp + 0x38]
lea esi, [eax + ebx*8]
call fcn.0046b595
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x1c]
sar ecx, 2
cmp edi, ecx
jae 0x4645c6
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 3
cmp ebx, eax
jb 0x46458f
call fcn.004d6d23
mov eax, dword [esp + 0x38]
lea esi, [eax + ebx*8]
call fcn.0046b595
lea esi, [eax + 0x10]
call fcn.0044a99d
push dword [ebp + 0x14]
mov ecx, dword [eax]
xor esi, esi
inc esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00464b28
test eax, eax
jne 0x4645c2
mov eax, dword [esp + 0x3c]
inc edi
jmp 0x464552
mov dword [esp + 0x18], esi
cmp dword [esp + 0x18], 1
je 0x4645e3
mov eax, dword [esp + 0x3c]
mov ecx, eax
sub ecx, dword [esp + 0x38]
inc ebx
sar ecx, 3
cmp ebx, ecx
jb 0x464550
or dword [esp + 0x70], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.004617d1
cmp dword [esp + 0x18], 0
jne 0x4646de
lea eax, [esp + 0x2c]
push eax
call fcn.0042b360
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push eax
add ebx, 0xa4
mov dword [esp + 0x74], 1
call fcn.00464a6b
mov eax, dword [esp + 0x3c]
mov ecx, eax
sub ecx, dword [esp + 0x38]
xor ebx, ebx
sar ecx, 3
test ecx, ecx
jbe 0x4646d0
xor edi, edi
sub eax, dword [esp + 0x38]
sar eax, 3
cmp ebx, eax
jb 0x46464d
call fcn.004d6d23
mov eax, dword [esp + 0x38]
lea esi, [eax + ebx*8]
call fcn.0046b595
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x1c]
sar ecx, 2
cmp edi, ecx
jae 0x4646b3
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 3
cmp ebx, eax
jb 0x46467a
call fcn.004d6d23
mov eax, dword [esp + 0x38]
lea esi, [eax + ebx*8]
call fcn.0046b595
lea esi, [eax + 0x10]
call fcn.0044a99d
push dword [ebp + 0x14]
mov ecx, dword [eax]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00464b28
test eax, eax
jne 0x4646ab
mov eax, dword [esp + 0x3c]
inc edi
jmp 0x46463d
mov dword [esp + 0x14], 1
cmp dword [esp + 0x14], 1
je 0x4646d0
mov eax, dword [esp + 0x3c]
mov ecx, eax
sub ecx, dword [esp + 0x38]
inc ebx
sar ecx, 3
cmp ebx, ecx
jb 0x46463b
or dword [esp + 0x70], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.004617d1
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
je 0x464731
cmp dword [esp + 0x14], edi
jne 0x464731
lea edi, [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
lea esi, [esp + 0x4c]
call fcn.004054c6
mov eax, esi
push eax
add ebx, 0xe4
push ebx
mov dword [esp + 0x78], 2
call fcn.004671dc
xor ecx, ecx
inc ecx
push 0
push ecx
mov dword [eax], ecx
call fcn.0040568e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
jmp 0x464739
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10