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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f8343
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esi + 0x88], bl
je 0x57788d
lea eax, [ebx + 0x3c]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005b8b28
mov edi, dword [esi + 0x1e8]
add edi, 0x380
add esp, 4
lea ebp, [edi + 0x14]
push ebp
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0x30]
push ebp
jb 0x5778cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x577954
mov ebx, dword [edi + 0x2c]
shr ebx, 0xc
and bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x577952
mov dword [esp + 0x28], 0
call fcn.005d95d0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esi + 0x90]
push ecx
sub esp, 8
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov ebx, esi
call fcn.00576d30
lea eax, [esp + 0xa0]
push eax
call fcn.00575f90
mov dword [esp + 0xd8], 0
mov ecx, dword [esi + 0x1e8]
push eax
add ecx, 0x380
push ecx
call fcn.004c4090
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0xdc], 0xffffffff
call fcn.005761f0
xor ebx, ebx
push 0x430
call fcn.0059b847
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
mov dword [esp + 0xd8], 1
je 0x577a17
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
sub esp, 8
mov dword [esp + 0x2c], esp
mov edi, esp
mov ebx, esi
mov dword [esp + 0x2c], eax
call fcn.00559a50
movzx eax, byte [0x65b3ac]
movzx ecx, byte [0x65b3af]
movzx edx, byte [0x65b3ad]
push eax
movzx eax, byte [0x65b3a9]
push ecx
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.005791b0
add esp, 0x1c
lea edi, [esp + 0x98]
call fcn.005792d0
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0xdc], 4
mov eax, dword [esi + 0x1e8]
lea edx, [esp + 0x50]
push edx
mov ecx, edi
push ecx
lea edx, [eax + 0x858]
push edx
add eax, 0x374
push eax
push ebp
mov dword [esp + 0x30], 7
call fcn.00556160
xor ebx, ebx
jmp 0x577a19
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov dword [esp + 0xdc], 7
call fcn.004f4460
mov dword [esp + 0xd8], 9
test byte [esp + 0x18], 4
je 0x577a6f
mov eax, dword [esp + 0x4c]
and dword [esp + 0x18], 0xfffffffb
cmp eax, ebx
je 0x577a6f
test al, 1
jne 0x577a6b
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x577a6b
lea edx, [esp + 0x54]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xd8], 0xa
test byte [esp + 0x18], 2
je 0x577aab
mov eax, dword [esp + 0x6c]
and dword [esp + 0x18], 0xfffffffd
cmp eax, ebx
je 0x577aab
test al, 1
jne 0x577aa7
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x577aa7
lea edx, [esp + 0x74]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x6c], ebx
mov byte [esp + 0xd8], 0xb
test byte [esp + 0x18], 1
je 0x577aeb
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x577aeb
test al, 1
jne 0x577ae4
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x577ae4
lea edx, [esp + 0x94]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x8c], ebx
xor eax, eax
push ebx
push 0x1c9c380
mov byte [esi + 0x88], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call fcn.004b2860
add esp, 8
push ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x1e8]
add ecx, 0x64
push ecx
mov ecx, dword [esp + 0x2c]
push 5
push ebx
push ebx
push edx
push eax
lea edx, [esi + 0x90]
push edx
call fcn.00556680
mov eax, dword [esi + 0x84]
imul eax, eax
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, ebx
lea edi, [ecx*4 + 0x3c]
je 0x577b9a
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x577b9a
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x577b9a
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret