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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
or esi, 0xffffffff
mov ebx, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.004c3d47
cmp dword [ebx + 0x1a8], 0
jne 0x4c8359
lea ebp, [ebx + 0x10]
mov ecx, ebp
call fcn.0049f345
test al, al
je 0x4c8359
inc dword [ebx + 0x1a8]
mov ecx, ebp
call fcn.0049f34d
test al, al
jne 0x4c8353
mov ecx, ebp
call fcn.0049f351
mov ecx, ebp
mov byte [esp + 0x13], al
mov byte [esp + 0x30], 0
call fcn.0049fc4c
or dword [esp + 0x1c], esi
xor ecx, ecx
or dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x4c8337
dec eax
xor esi, esi
mov dword [esp + 0x3c], eax
inc esi
mov ecx, ebp
call fcn.0049f403
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.0049eeea
mov dword [esp + 0x28], eax
cmp dword [eax], esi
jne 0x4c816a
push 0
push eax
push 0x420
jmp 0x4c81e3
cmp dword [eax], 3
jne 0x4c81db
movaps xmm0, xmmword [0x556350]
lea esi, [esp + 0x40]
mov eax, dword [eax + 4]
sub esp, 0x28
and dword [esp + 0x88], 0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x8c], eax
xorps xmm0, xmm0
push 0xa
pop ecx
mov edi, esp
movups xmmword [esp + 0x78], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004c70c4
mov edi, dword [esp + 0x28]
mov cl, byte [edi + 0x10]
test cl, cl
jne 0x4c81bf
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x18], 0xffffffff
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x4c8203
push 0
push eax
push 0x820
lea ecx, [esp + 0x4c]
call fcn.004c1d43
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004c70c4
mov edi, dword [esp + 0x28]
mov ecx, ebp
call fcn.0049f536
cmp dword [edi], 3
je 0x4c8222
push dword [edi + 4]
mov ecx, ebx
call fcn.004c6b5e
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
jmp 0x4c8226
mov eax, dword [esp + 0x24]
xor edx, edx
inc edx
push 0x20
pop esi
cmp dword [edi], edx
jne 0x4c8293
mov edx, dword [edi + 0xc]
add eax, edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0x21
pop esi
test eax, eax
jle 0x4c827f
cmp ecx, dword [esp + 0x18]
je 0x4c8268
mov eax, dword [esp + 0x18]
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x20]
cmp ecx, eax
je 0x4c8264
mov eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x4c8285
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jmp 0x4c828d
mov eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jmp 0x4c82af
cmp dword [edi], 0
jne 0x4c82af
or dword [esp + 0x1c], 0xffffffff
and dword [esp + 0x14], 0
or dword [esp + 0x18], 0xffffffff
and dword [esp + 0x20], 0
push 0x22
pop esi
xor eax, eax
inc eax
cmp dword [esp + 0x34], eax
jle 0x4c82be
or esi, 0x80
mov ecx, ebp
call fcn.0049f403
mov ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x38]
push 1
pop edx
movzx ecx, cl
cmovne ecx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], edx
jne 0x4c82f4
or esi, 0x100
test cl, cl
je 0x4c82f4
or esi, 0x1000
push 0
push dword [edi + 8]
lea ecx, [esp + 0x48]
push eax
push dword [edi + 0xc]
push dword [edi + 4]
push esi
call fcn.004a4181
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004c70c4
mov edi, dword [esp + 0x2c]
inc edi
push 1
mov dword [esp + 0x30], edi
pop esi
cmp edi, dword [esp + 0x34]
jl 0x4c8146
mov esi, dword [esp + 0x24]
mov ecx, ebp
call fcn.0049f351
mov byte [esp + 0x3c], al
cmp byte [esp + 0x13], al
je 0x4c8353
push dword [esp + 0x3c]
mov ecx, ebx
call fcn.004c716b
dec dword [ebx + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret