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

Disassembly:
sub esp, 0xc
mov dword [esp], ecx
mov dword [ecx], 0x4c6ea3c
mov eax, dword [esp]
mov ecx, dword [eax + 0x58]
push ebx
xor ebx, ebx
cmp ecx, ebx
push edi
je 0x4c4bb90
push ecx
call fcn.04c33f10
mov eax, dword [esp + 0xc]
mov dword [eax + 0x58], ebx
mov eax, dword [esp + 0xc]
add esp, 4
cmp dword [eax + 0x184], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
je 0x4c4bbd3
mov ecx, dword [eax + 0x68]
add ecx, 0x24
push ecx
call esi
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x184]
cmp ecx, ebx
je 0x4c4bbc2
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x68]
add edx, 0x24
push edx
call edi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x6c]
cmp ecx, ebx
je 0x4c4bbe4
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x118], ebx
je 0x4c4bbf8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
add eax, 0xc
push eax
call esi
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x68]
add edx, 0x3c
push edx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0xc]
mov dword [eax + 4], eax
mov eax, dword [esp + 0xc]
mov dword [eax + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x68]
add ecx, 0x3c
push ecx
call edi
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xf8]
add ecx, 0xf4
xor eax, eax
cmp edx, ecx
je 0x4c4bc70
mov eax, edx
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov dword [eax + 4], eax
mov dword [eax + 8], eax
cmp eax, ebx
je 0x4c4bce4
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jne 0x4c4bc9e
cmp byte [eax + 0x18], bl
je 0x4c4bc94
mov edx, dword [eax + 0x1c]
cmp edx, ebx
jne 0x4c4bc8b
xor ecx, ecx
jmp 0x4c4bc97
movzx ecx, word [eax + 0x20]
add ecx, dword [edx + 0x14]
jmp 0x4c4bc97
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
mov dword [eax + 0x14], ecx
je 0x4c4bca1
mov byte [ecx + 4], bl
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x74]
push 1
push eax
call fcn.04c49150
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xf8]
add ecx, 0xf4
xor eax, eax
cmp edx, ecx
je 0x4c4bce0
mov eax, edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov dword [eax + 4], eax
mov dword [eax + 8], eax
cmp eax, ebx
jne 0x4c4bc74
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x120]
cmp eax, ebx
je 0x4c4bd34
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jne 0x4c4bd1c
cmp byte [eax + 0x18], bl
je 0x4c4bd12
mov edx, dword [eax + 0x1c]
cmp edx, ebx
jne 0x4c4bd09
xor ecx, ecx
jmp 0x4c4bd15
movzx ecx, word [eax + 0x20]
add ecx, dword [edx + 0x14]
jmp 0x4c4bd15
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
mov dword [eax + 0x14], ecx
je 0x4c4bd1f
mov byte [ecx + 4], bl
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x120]
push 1
push ecx
mov ecx, dword [eax + 0x74]
call fcn.04c49150
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x124]
cmp eax, ebx
je 0x4c4bd84
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jne 0x4c4bd6c
cmp byte [eax + 0x18], bl
je 0x4c4bd62
mov edx, dword [eax + 0x1c]
cmp edx, ebx
jne 0x4c4bd59
xor ecx, ecx
jmp 0x4c4bd65
movzx ecx, word [eax + 0x20]
add ecx, dword [edx + 0x14]
jmp 0x4c4bd65
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
mov dword [eax + 0x14], ecx
je 0x4c4bd6f
mov byte [ecx + 4], bl
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x124]
push 1
push ecx
mov ecx, dword [eax + 0x74]
call fcn.04c49150
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x11c]
cmp eax, ebx
je 0x4c4bdd4
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jne 0x4c4bdbc
cmp byte [eax + 0x18], bl
je 0x4c4bdb2
mov edx, dword [eax + 0x1c]
cmp edx, ebx
jne 0x4c4bda9
xor ecx, ecx
jmp 0x4c4bdb5
movzx ecx, word [eax + 0x20]
add ecx, dword [edx + 0x14]
jmp 0x4c4bdb5
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
mov dword [eax + 0x14], ecx
je 0x4c4bdbf
mov byte [ecx + 4], bl
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x11c]
push 1
push ecx
mov ecx, dword [eax + 0x74]
call fcn.04c49150
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x6c]
cmp dword [edx + 0x4c], ebx
je 0x4c4bde9
push eax
call fcn.04c3e890
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x6c]
cmp ecx, ebx
je 0x4c4be01
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x6c], ebx
mov ecx, dword [esp + 0xc]
add ecx, 0xc
push ecx
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x60]
cmp eax, ebx
je 0x4c4be1f
push eax
call fcn.04c33f10
add esp, 4
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xf0]
cmp eax, ebx
je 0x4c4be36
push eax
call fcn.04c33f10
add esp, 4
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x17c]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x180]
cmp esi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
je 0x4c4be7f
cmp dword [esi + 4], ebx
je 0x4c4be65
mov ecx, esi
call fcn.04c3f360
mov ecx, dword [esi + 8]
cmp ecx, ebx
lea eax, [esi + 8]
je 0x4c4be72
push eax
call edi
push esi
call fcn.04c33f10
mov eax, dword [esp + 0x10]
add esp, 4
test byte [eax + 0x110], 0x10
je 0x4c4bf4a
mov eax, dword [eax + 0x188]
add eax, 0x3c
push eax
call fcn.04c53100
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x188]
add edx, 4
push edx
call fcn.04c53fb0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x188]
mov eax, dword [ecx + 0x84]
add esp, 8
cmp eax, ebx
je 0x4c4bf0d
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jne 0x4c4beef
cmp byte [eax + 0x18], bl
je 0x4c4bee5
mov edx, dword [eax + 0x1c]
cmp edx, ebx
jne 0x4c4bedc
xor ecx, ecx
jmp 0x4c4bee8
movzx ecx, word [eax + 0x20]
add ecx, dword [edx + 0x14]
jmp 0x4c4bee8
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
mov dword [eax + 0x14], ecx
je 0x4c4bef2
mov byte [ecx + 4], bl
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x188]
mov ecx, dword [edx + 0x84]
push 1
push ecx
mov ecx, dword [eax + 0x74]
call fcn.04c49150
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x188]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.04c33f10
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x188]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.04c33f10
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x188]
push eax
call fcn.04c33f10
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax + 0x64]
lea edx, [ecx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 1
jne 0x4c4bf7d
cmp ecx, ebx
je 0x4c4bf7d
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x14c]
add esi, 0x13c
cmp eax, ebx
mov dword [esi], 0x4c6a9b4
je 0x4c4bfa3
push eax
call fcn.04c33f10
add esp, 4
mov dword [esi + 0x10], ebx
mov ecx, esi
call fcn.04c35480
mov ecx, dword [esp + 0xc]
add ecx, 0xf4
call fcn.04c35480
mov ecx, dword [esp + 0xc]
add ecx, 0x78
call fcn.04c49580
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
add eax, 0x3c
cmp ecx, ebx
pop esi
je 0x4c4bfd7
push eax
call edi
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x24]
add eax, 0x24
cmp ecx, ebx
je 0x4c4bfe8
push eax
call edi
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0xc]
add eax, 0xc
cmp ecx, ebx
je 0x4c4bff9
push eax
call edi
mov ecx, dword [esp + 8]
pop edi
pop ebx
add esp, 0xc
jmp fcn.04c35480