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

Disassembly:
push 0xffffffffffffffff
push 0x542550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x64]
push edi
mov dword [esp + 0x20], esi
call fcn.00470d30
mov edi, dword [esp + 0x74]
test edi, edi
je 0x4cbcb9
mov dword [edi], 0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4cbcc7
mov dword [eax], 0
lea ecx, [esp + 0x44]
call fcn.00512f21
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x60], 0
test ebp, ebp
jne 0x4cbce6
lea ebp, [esp + 0x44]
jmp 0x4cbcf1
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00512fb4
lea ecx, [esp + 0x30]
call fcn.00470b30
test esi, esi
mov byte [esp + 0x60], 1
je 0x4cbd3d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cbd26
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4cbd26
shr eax, 2
push esi
push eax
push ecx
call fcn.00471b40
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4cbd3d
push esi
lea ecx, [esp + 0x34]
call fcn.00470df0
mov ecx, esi
call fcn.004cc320
mov esi, eax
test esi, esi
jne 0x4cbd03
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov edx, eax
neg edx
sbb edx, edx
shr eax, 2
and edx, esi
lea ebx, [eax - 1]
mov dword [esp + 0x2c], edx
test ebx, ebx
mov dword [esp + 0x70], ebx
jl 0x4cbefa
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x4cbd71
xor ecx, ecx
jmp 0x4cbd74
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x3c]
shr eax, 2
test eax, eax
jle 0x4cbeef
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov esi, dword [ecx]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
mov ecx, dword [ecx + 0x50]
push eax
push esi
add ecx, 0x1f0
mov dword [esp + 0x20], esi
call fcn.004d0460
test eax, eax
je 0x4cbecd
mov edx, dword [esp + 0x10]
mov eax, dword [0x58c8dc]
push eax
mov ecx, dword [edx]
push ecx
call fcn.004ff36e
add esp, 8
test eax, eax
jne 0x4cbdd5
test ebx, ebx
jne 0x4cbecd
jmp 0x4cbdfa
mov ecx, dword [esp + 0x10]
mov eax, dword [0x58c8e0]
push eax
mov ecx, dword [ecx]
push ecx
call fcn.004ff36e
add esp, 8
test eax, eax
jne 0x4cbe1a
test ebx, ebx
jne 0x4cbecd
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4cbecd
mov ecx, dword [esp + 0x10]
call fcn.004c7e10
test eax, eax
jne 0x4cbecd
mov dword [edi], esi
jmp 0x4cbecd
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4cbe30
mov edx, dword [esp + 0x10]
test byte [edx + 0xc], 8
je 0x4cbecd
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x4cbe7f
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, ebp
call fcn.0043ad20
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.004ff36e
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call fcn.00514336
test bl, bl
jne 0x4cbeb0
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jl 0x4cbe3d
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push ecx
push eax
mov ecx, ebp
call fcn.005131b1
mov ecx, dword [esp + 0x68]
push esi
call fcn.00470df0
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x4cbecd
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
push eax
call fcn.00470df0
jmp 0x4cbecd
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4cbebf
xor eax, eax
jmp 0x4cbec2
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x70]
mov dword [eax + edi*4], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x4cbd8a
mov edx, dword [esp + 0x2c]
dec ebx
mov dword [esp + 0x70], ebx
jns 0x4cbd63
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
mov dword [esp + 0x30], 0x5477b0
call fcn.00470d30
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0xffffffff
call fcn.00512f54
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x18