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

Disassembly:
sub esp, 0x160
push ebx
mov ebx, dword [esp + 0x168]
push ebp
mov ebp, dword [esp + 0x178]
push esi
mov esi, eax
xor ecx, ecx
push edi
mov edi, dword [ebx + 4]
lea eax, [esp + 0x27]
and eax, 0xfffffffc
mov dword [esp + 0x1c], 0x6dbfc0
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x3c], 0xc
add edi, 1
mov dword [esp + 0x20], 0x70c7cc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x1c], 0x70c7cc
mov dword [esp + 0x2c], esi
mov ecx, dword [esi]
push ecx
call fcn.0069c8fa
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add esp, 4
cmp dword [ebx], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x17], al
jne 0x4cb3c0
mov eax, dword [ebp]
movzx edx, byte [eax]
mov al, byte [eax + 1]
test al, al
mov dword [esp + 0x38], edx
mov ecx, pe_nt_image_headers32
je 0x4cb379
movzx ecx, al
lea edi, [ecx + 1]
mov eax, edi
shr eax, 1
mov dword [esp + 0x3c], ecx
mov edx, 1
je 0x4cb397
jmp 0x4cb390
add edx, 1
shr eax, 1
jne 0x4cb390
cmp ecx, 0x100
mov dword [ebx], edx
jge 0x4cb3bc
test ecx, ecx
jle 0x4cb3ce
mov eax, dword [ebp]
add eax, 2
push ecx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.006a4bd0
add esp, 0xc
jmp 0x4cb3ce
xor eax, eax
mov edi, edi
mov byte [esp + eax + 0x70], al
add eax, 1
cmp eax, 0x100
jl 0x4cb3c0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
mov eax, edi
call fcn.004cb100
mov edx, dword [ebp]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov ecx, dword [ebp + 4]
lea esi, [esp + 0x60]
mov dword [eax + 4], ecx
call fcn.004caed0
mov edi, dword [ebx]
xor esi, esi
mov byte [esp + 0x16], 1
lea edx, [esp + 0x58]
call fcn.004caf50
mov ebp, eax
cmp ebp, dword [esp + 0x3c]
je 0x4cb499
cmp ebp, 0xffffffff
je 0x4cb499
cmp ebp, dword [ebx + 8]
jne 0x4cb431
lea edx, [esp + 0x40]
call fcn.004cb290
mov edi, dword [ebx]
mov byte [esp + 0x16], 1
jmp 0x4cb49e
cmp byte [esp + 0x16], 0
je 0x4cb45a
mov dl, byte [esp + ebp + 0x70]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x22], 0
mov byte [esp + 0x24], dl
call fcn.004bb3f0
mov esi, ebp
jmp 0x4cb49e
lea edx, [esp + 0x70]
push edx
push esi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
lea esi, [esp + 0x4c]
call fcn.004cb180
test al, al
je 0x4cb52d
mov edx, dword [ebx + 0xc]
add edx, dword [esp + 0x4c]
mov eax, 1
mov ecx, edi
shl eax, cl
cmp edx, eax
jne 0x4cb495
cmp edi, dword [esp + 0x38]
jae 0x4cb495
add edi, 1
mov esi, ebp
jmp 0x4cb49e
mov byte [esp + 0x17], 1
mov ebp, dword [esp + 0x17c]
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
test al, al
jne 0x4cb4bc
cmp byte [esp + 0x17], al
je 0x4cb400
mov eax, dword [ebp]
mov edx, dword [eax]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call edx
test al, al
mov esi, dword [esp + 0x178]
je 0x4cb578
mov eax, dword [esp + 0x60]
push eax
mov dword [esi], 1
call fcn.0069c8fa
mov ecx, dword [esp + 0x54]
add esp, 4
push ecx
call fcn.0069c8fa
mov edx, dword [esp + 0x44]
add esp, 4
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x24]
add esp, 4
push eax
mov dword [esp + 0x20], 0x70c7cc
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x20]
push edi
push ecx
jmp 0x4cb5c7
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x178]
push ecx
mov dword [esi], 2
call fcn.0069c8fa
mov edx, dword [esp + 0x54]
add esp, 4
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x44]
add esp, 4
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
mov dword [esp + 0x20], 0x70c7cc
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
jmp 0x4cb5c2
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x184]
push ecx
mov dword [eax], edx
mov dword [esi], edi
call fcn.0069c8fa
mov edx, dword [esp + 0x54]
add esp, 4
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x44]
add esp, 4
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
mov dword [esp + 0x20], 0x70c7cc
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x24], 0x6dbfc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x160
ret 0x14