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

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x44], esi
je 0x4c8131
cmp dword [ebx + 0x34], esi
jne 0x4c8131
test dword [ebx + 4], 0x100000
jne 0x4c8131
mov edi, dword [esp + 0x94]
cmp byte [edi + 0xdc], 2
jae 0x4c8131
push edi
call fcn.00497320
mov esi, dword [edi]
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x40], eax
push 0
push 0x40
test esi, esi
je 0x4c7c14
push esi
call fcn.00487b10
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
jmp 0x4c7c22
call fcn.0049b7f0
add esp, 8
mov dword [esp + 0x18], eax
mov ebp, eax
test ebp, ebp
je 0x4c813e
push 0x40
push 0
push ebp
call fcn.004e7970
lea eax, [esp + 0x64]
push edi
push eax
call fcn.0047b2d0
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.004bfed0
mov eax, dword [ebx + 4]
add esp, 0x1c
test al, 8
jne 0x4c7c77
push dword [ebx + 0x30]
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], 0x454730
push eax
mov dword [esp + 0x68], 0
call fcn.004bfdc0
mov eax, dword [ebx + 4]
add esp, 8
mov esi, dword [esp + 0x14]
and eax, 0xfffffff7
or eax, 0x100000
mov dword [ebx + 0x20], 0
push 1
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 4], eax
push dword [esi + 8]
push 0
push edi
call fcn.00457f60
push 1
push dword [esi + 0xc]
push eax
push edi
call fcn.00457f60
mov ecx, eax
add esp, 0x20
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4c7d10
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c7d10
mov eax, dword [eax]
mov esi, dword [ecx]
cmp eax, esi
jg 0x4c7d0c
push 0xffffffffffffffff
mov dword [ecx], eax
push dword [ebx + 0x30]
push ecx
call fcn.0048eef0
add esp, 0xc
test eax, eax
jne 0x4c7d06
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c7cff
push eax
push dword [esp + 0x20]
call fcn.00458120
add esp, 8
mov dword [ebx + 0x30], 0
mov eax, dword [esp + 0x30]
mov dword [eax], esi
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x28]
mov dword [esi + 0x30], eax
lea eax, [esp + 0x10]
add dword [edi + 0x28], 4
push eax
push ebp
push dword [ebx + 0x1c]
push dword [esp + 0x2c]
push esi
push edi
call fcn.00479a40
mov ecx, dword [esp + 0x38]
add esp, 0x18
mov ebx, dword [ebx + 0x30]
xorps xmm0, xmm0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], 0x479af0
mov dword [esp + 0x7c], 0x479d00
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x24], ebp
test ebx, ebx
je 0x4c7dcb
mov esi, dword [ebx]
add ebx, 8
mov dword [esp + 0x24], ebp
test esi, esi
jle 0x4c7dc7
mov dword [esp + 0x24], ebp
mov eax, dword [ebx]
test eax, eax
je 0x4c7dbb
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004bfe10
add esp, 8
test eax, eax
jne 0x4c7dc3
dec esi
add ebx, 0x14
test esi, esi
jg 0x4c7da3
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4c7dd3
mov ecx, dword [eax]
jmp 0x4c7dd5
xor ecx, ecx
push 0
push dword [esi + 8]
mov dword [esi + 0x4c], ecx
push eax
push edi
call fcn.00457f60
push 0
push dword [esi + 0xc]
push eax
push edi
call fcn.00457f60
mov edx, dword [esp + 0x34]
mov esi, eax
add esp, 0x20
mov dword [esp + 0x10], esi
mov ebx, edx
nop
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x2c]
test dword [eax + 4], 0x100000
je 0x4c7e45
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
push dword [esp + 0x2c]
push edx
push edi
call fcn.00479a40
mov esi, dword [esp + 0x28]
add esp, 0x18
test esi, esi
je 0x4c7e3a
mov eax, dword [esi]
mov dword [ebx + 0x50], eax
mov byte [ebx + 0x60], 1
jmp 0x4c7e65
xor eax, eax
mov byte [ebx + 0x60], 1
mov dword [ebx + 0x50], eax
jmp 0x4c7e65
test esi, esi
je 0x4c7e4d
mov eax, dword [esi]
jmp 0x4c7e4f
xor eax, eax
push 0
push ecx
push esi
push edi
mov dword [ebx + 0x50], eax
call fcn.00457f60
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4c7ed2
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.00457690
add esp, 0x10
mov edx, eax
test esi, esi
jne 0x4c7e92
push edx
push dword [edi]
call fcn.0048ecb0
add esp, 8
mov esi, eax
jmp 0x4c7ece
mov eax, dword [esi]
lea ebp, [eax + 1]
cmp dword [esi + 4], ebp
jge 0x4c7eac
push edx
push esi
push dword [edi]
call fcn.0048ebf0
add esp, 0xc
mov esi, eax
jmp 0x4c7eca
movups xmm0, xmmword [0x513444]
lea eax, [eax + eax*4]
mov dword [esi], ebp
lea ecx, [esi + eax*4]
mov eax, dword [0x513454]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edx
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x34], eax
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x4c7f05
push 0
push edx
push 0
push 0x4b
push eax
call fcn.0045f9a0
add esp, 0x14
jmp 0x4c7f3e
mov ebp, dword [esp + 0x28]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [ebp + 0x6c], eax
mov eax, ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [ebx + 0x24]
mov edx, dword [esp + 0x14]
test ebx, ebx
jne 0x4c7e00
test esi, esi
jne 0x4c7f82
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x52a6d8
push eax
push 0x9b
push dword [esp + 0x28]
mov dword [esp + 0x3c], 1
call fcn.0048a5a0
push eax
push dword [edi]
call fcn.0048ecb0
add esp, 0x18
mov esi, eax
push 0
push 0
push dword [esp + 0x38]
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x38]
push esi
push edi
call fcn.004aa5a0
push 0
push 0x50
push dword [edi]
mov esi, eax
call fcn.00487b10
mov ebx, eax
add esp, 0x30
test ebx, ebx
jne 0x4c7fe3
mov eax, dword [esp + 0x98]
mov dword [eax + 0x20], ebx
mov ebx, dword [esp + 0x24]
mov ebp, ebx
test esi, esi
je 0x4c8110
push 1
push esi
push dword [esp + 0x24]
call fcn.0044e580
add esp, 0xc
jmp 0x4c8110
push 0x48
lea eax, [ebx + 8]
mov dword [ebx + 4], 1
push 0
push eax
mov dword [ebx], 1
call fcn.004e7970
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov dword [ebx + 0x34], 0xffffffff
mov eax, dword [ebx]
lea eax, [eax + eax*8]
mov dword [ebx + eax*8 - 0x38], 0
mov dword [ebx + eax*8 - 0x3c], 0
mov dword [ecx + 0x20], ebx
mov dword [ebx + 0x1c], esi
mov eax, dword [ecx + 0x20]
or dword [eax + 0x30], 8
mov ebx, dword [ecx + 0x20]
mov eax, dword [esp + 0x24]
mov ebp, eax
test ebx, ebx
je 0x4c806e
xor edx, edx
cmp dword [ebx], edx
jle 0x4c806e
lea ecx, [ebx + 0x34]
cmp dword [ecx], 0
jge 0x4c8066
mov eax, dword [edi + 0x28]
mov dword [ecx], eax
inc dword [edi + 0x28]
mov eax, dword [ecx - 0x18]
test eax, eax
je 0x4c8066
push dword [eax + 0x20]
push edi
call fcn.004aae80
add esp, 8
inc edx
add ecx, 0x48
cmp edx, dword [ebx]
jl 0x4c8046
or dword [esi + 4], 0x8000040
push 0x40
push esi
push edi
call fcn.004a5bc0
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x40]
and eax, 8
or dword [esi + 4], eax
test ecx, ecx
jne 0x4c8099
lea esi, [ecx + 7]
jmp 0x4c8112
movups xmm0, xmmword [ecx]
mov edx, dword [esp + 0x18]
mov ebp, ecx
mov eax, dword [esp + 0x98]
push esi
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [edx + 0x30], xmm0
or dword [edx + 0x1c], 0x4000
mov eax, dword [eax + 0x20]
xorps xmm0, xmm0
mov dword [eax + 0x18], edx
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], 0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x64], 0x4c76a0
mov dword [esp + 0x68], 0x4c00d0
mov dword [esp + 0x6c], 0x4c00c0
call fcn.004bfed0
add esp, 8
xor esi, esi
mov eax, dword [esp + 0x1c]
mov ecx, 7
push ebp
push 0x4879e0
push edi
cmp byte [eax + 0x57], 0
cmovne esi, ecx
call fcn.0049eb40
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test esi, esi
je 0x4c8156
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x4c8156
inc dword [eax + 0x24]
mov dword [eax + 0xc], 7
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x80
ret