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

Disassembly:
push 0xffffffffffffffff
push 0x579ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor eax, eax
cmp dword [ecx + 0x88], 1
mov ebx, edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], eax
jne 0x4f0b32
add dword [ebx + 0xd0], 0xffffffff
cmp dword [ebx + 0xd0], eax
jle 0x4f0b2c
mov dword [ecx + 0x88], 2
jmp 0x4f0da8
mov dword [ecx + 0x88], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x98], eax
lea eax, [ebx + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x94]
mov eax, dword [eax]
lea esi, [ebx + 0x90]
mov edi, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
lea ebx, [ebx]
test esi, esi
mov ebp, dword [ebx + 0x94]
lea eax, [ebx + 0x90]
je 0x4f0b84
cmp esi, eax
je 0x4f0b8a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebp
je 0x4f0c99
test esi, esi
jne 0x4f0b9c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x4f0ba7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
lea ebx, [edi + 0x10]
mov esi, ebx
mov ebp, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
jmp 0x4f0bc0
test esi, esi
mov edi, dword [ebx + 4]
je 0x4f0bcb
cmp esi, ebx
je 0x4f0bd1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, edi
je 0x4f0c75
test esi, esi
jne 0x4f0be3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 4]
jne 0x4f0bee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 8]
test edx, edx
lea esi, [ebp + 0x18]
je 0x4f0c01
add ecx, 0xc
jmp 0x4f0c03
xor ecx, ecx
lea eax, [esi + 8]
test eax, eax
je 0x4f0c0f
lea eax, [esi + 0xc]
jmp 0x4f0c11
xor eax, eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f0c8f
mov eax, dword [eax]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f0c46
test dx, dx
je 0x4f0c42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f0c46
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f0c20
xor eax, eax
jmp 0x4f0c4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f0c5f
cmp byte [esi + 0x30], 0
je 0x4f0c5f
push esi
lea esi, [esp + 0x20]
call fcn.004f2480
lea esi, [esp + 0x2c]
call fcn.004ea8f0
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
jmp 0x4f0bc0
lea esi, [esp + 0x34]
call fcn.0043d840
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
jmp 0x4f0b70
push 0x80004005
call fcn.0040fcd0
lea eax, [ebx + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ecx
jbe 0x4f0cc4
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov edi, eax
jbe 0x4f0cd4
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp esi, edi
je 0x4f0d6c
cmp esi, eax
jb 0x4f0ce2
call ebp
push 0x44
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x50], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x9c]
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
jne 0x4f0d3b
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x4f0d3b
xor eax, eax
mov edx, dword [ebx + 0xc]
lea edi, [esp + 0x44]
push edi
lea ecx, [ebx + 0xc]
push esi
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], 1
cmp esi, eax
jb 0x4f0d61
call ebp
mov eax, dword [esp + 0x24]
add esi, 0xd0
jmp 0x4f0cc0
test ecx, ecx
mov dword [esp + 0x98], 0xffffffff
je 0x4f0da4
cmp ecx, eax
mov edi, eax
mov esi, ecx
je 0x4f0d9b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0xd0
cmp esi, edi
jne 0x4f0d83
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00569ed6
add esp, 0x88
ret