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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edi, ecx
lea eax, [esp + 0x5c]
xor esi, esi
lea ebx, [esp + 0x30]
lea ecx, [esp + 0x84]
mov dword [eax], esi
mov dword [ebx], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.1004fcde
sub esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5c]
mov dword [ebx], esi
mov dword [esp + 4], ebx
mov dword [eax], esi
mov dword [esp], eax
call fcn.1004fcde
sub esp, 8
mov ebx, dword [edi + 0x68]
mov dword [esp + 0x48], edi
mov edi, dword [edi + 0x6c]
cmp ebx, edi
je 0x1004ca68
lea esi, [esp + 0x5c]
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x10]
mov byte [esp + 8], al
mov dword [esp], ecx
mov ecx, esi
mov dword [esp + 4], edx
call fcn.1004fda0
sub esp, 0xc
add ebx, 4
cmp edi, ebx
jne 0x1004ca3a
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi]
cmp eax, edi
je 0x1004cc82
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 8]
xorps xmm0, xmm0
mov ecx, dword [ecx + 0x44]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0x58]
movaps xmmword [esp + 0x30], xmm0
add eax, 0x54
mov dl, byte [esp + 0x18]
mov byte [esp + 8], dl
mov dword [esp], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 4], eax
call fcn.1004fff8
sub esp, 0xc
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x18]
cmp esi, eax
mov dword [esp + 0x50], eax
jne 0x1004cbf5
jmp 0x1004cc57
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
lea ecx, [esp + 0x18]
cmp eax, edi
je 0x1004cb75
mov dword [esp + 0x2c], eax
mov cl, 1
mov eax, edi
xor edi, edi
mov dword [esp + 0x28], ecx
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 8]
add ecx, 0xffffffee
cmp ecx, 0xf
mov ecx, 0
cmovae edx, ecx
test edx, edx
mov dword [esp + 0x18], edx
je 0x1004cb4c
lea ecx, [esp + 0x54]
lea eax, [esp + 0x18]
mov dword [esp], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.10050046
sub esp, 8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x64]
jne 0x1004cb44
mov dword [esp + 0x28], 0
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
jmp 0x1004cb50
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], ecx
sub ecx, eax
inc edi
sar ecx, 2
cmp edi, ecx
jb 0x1004cafb
test byte [esp + 0x28], 1
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
je 0x1004cc4a
mov dword [esp + 0x10], ebx
mov edi, ecx
mov al, byte [esp + 0x14]
mov byte [esp + 8], al
mov dword [esp], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 4], edx
call fcn.1004fda0
sub esp, 0xc
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov edx, dword [ecx]
and eax, 0xfffffffc
and edx, 3
or edx, eax
mov dword [ecx], edx
mov dword [eax + 4], ecx
mov eax, 3
mov cl, 1
and dword [ebx + 4], eax
mov dword [ebx + 8], 0
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1004cbed
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov al, byte [esp + 0x14]
mov byte [esp + 8], al
mov dword [esp + 4], ecx
lea ecx, [esp + 0x5c]
mov dword [esp], edi
call fcn.1004fda0
sub esp, 0xc
mov ecx, edi
mov edi, dword [esp + 0x20]
jmp 0x1004cc4a
mov ebx, dword [esi]
cmp byte [ebx + 0x14], 0
jne 0x1004cc4a
mov dword [esp + 4], ecx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x84]
mov dword [esp + 0x18], ebx
mov dword [esp], eax
call fcn.10050046
sub esp, 8
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x8c]
jne 0x1004cc46
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x10]
cmp eax, 0x10
ja 0x1004cadb
mov ecx, 0x1ba1a
bt ecx, eax
jae 0x1004cadb
lea ecx, [esp + 0x18]
add esi, 4
cmp esi, dword [esp + 0x50]
jne 0x1004cbf5
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1004cc69
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
cmp eax, edi
jne 0x1004ca84
test byte [esp + 0x24], 1
jne 0x1004ca68
mov eax, dword [esp + 0x8c]
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [eax]
mov dword [edi + 4], esi
mov dword [edi], esi
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
mov dl, byte [esp + 0x30]
mov byte [esp + 8], dl
mov dword [esp], ecx
mov ecx, edi
mov dword [esp + 4], eax
call fcn.100500a8
sub esp, 0xc
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, edx
sub eax, ecx
sar eax, 2
mov dword [esp], eax
call fcn.100500ee
cmp dword [esp + 0x70], esi
je 0x1004ccdb
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x64]
mov dword [ecx + 4], ecx
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x64]
jmp 0x1004ccfa
mov eax, dword [eax]
cmp eax, ecx
jne 0x1004ccf8
cmp dword [esp + 0x98], 0
je 0x1004cd1f
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x8c]
mov dword [ecx + 4], ecx
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x8c]
jmp 0x1004cd4a
mov eax, dword [eax]
cmp eax, ecx
jne 0x1004cd48
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8