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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x68f500]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov edx, dword [ecx + 0x78]
mov ebp, dword [esp + 0x120]
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esi + 4]
cmp edx, 0xffffffff
je 0x4ca64b
test bl, 8
jne 0x4ca64b
test dword [edi + 4], 0x7fff0000
jne 0x4ca64b
test dword [edi + 8], 0x8000
jne 0x4ca64b
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [edi + 0x21c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x108]
push eax
lea eax, [esi + 0x4c]
push eax
push dword [edi + 0x68]
mov eax, dword [ecx + 0x48]
push ebx
push ebp
push edx
push edi
call eax
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x4ca347
movzx ecx, word [esp + 0x10a]
mov dword [esi + 0x6c], eax
movzx eax, word [esp + 0x108]
shl eax, 6
mov dword [esi + 0x1c], eax
shl ecx, 6
mov dword [esi + 0x18], ecx
movsx ecx, word [esp + 0x10c]
mov eax, ecx
mov dword [esi + 0x48], 0x62697473
shl eax, 6
mov dword [esi + 0x20], eax
movsx eax, word [esp + 0x10e]
shl eax, 6
mov dword [esi + 0x24], eax
movzx eax, word [esp + 0x110]
shl eax, 6
mov dword [esi + 0x28], eax
movsx eax, word [esp + 0x112]
shl eax, 6
mov dword [esi + 0x2c], eax
movsx eax, word [esp + 0x114]
shl eax, 6
mov dword [esi + 0x30], eax
movzx eax, word [esp + 0x116]
shl eax, 6
mov dword [esi + 0x34], eax
test bl, 0x10
je 0x4ca339
movsx eax, word [esp + 0x112]
mov dword [esi + 0x64], eax
movsx eax, word [esp + 0x114]
jmp 0x4ca344
movsx eax, word [esp + 0x10e]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esi + 4]
cmp dl, 0x9d
jne 0x4ca4c2
test byte [eax + 8], 1
jne 0x4ca647
cmp dword [edi + 0x2fc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
je 0x4ca4d1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
call fcn.004c98d0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push ebp
push edi
call fcn.004c9900
xor eax, eax
add esp, 0x24
mov dword [esi + 0x6c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
movsx eax, word [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x28]
mov dword [esi + 0x24], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], eax
movsx eax, word [esp + 0x1c]
mov dword [esi + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], eax
movzx eax, word [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0x48], 0x62697473
mov byte [esi + 0x5e], 1
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
jmp 0x4ca8ff
mov eax, dword [eax + 8]
test edx, edx
je 0x4ca4d8
test al, 1
jne 0x4ca647
mov eax, edx
jmp 0x4ca8ff
test eax, 0x20001
je 0x4ca640
push 1
push ebx
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
call fcn.004d2490
push 1
push 0
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.004d07a0
lea eax, [esp + 0x54]
push eax
call fcn.004d2470
mov eax, dword [esp + 0x94]
add esp, 0x28
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xe0]
mov dword [esi + 0x3c], eax
cmp dword [edi + 0x328], 3
jne 0x4ca5c4
cmp word [esp + 0x50], 0
jle 0x4ca5c4
test bl, 0x10
je 0x4ca554
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xdc]
jmp 0x4ca560
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sar eax, 6
add dword [esi + 0x64], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sar eax, 6
add dword [esi + 0x68], eax
cmp dword [esi + 0x28], 0
jne 0x4ca602
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4ca602
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x34], 0
jne 0x4ca640
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ca640
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x4ca8ff
mov ecx, dword [esp + 0x18]
test ebx, 0x4000
je 0x4ca65d
mov edi, 6
jmp 0x4ca8fd
mov eax, ebx
and eax, 1
mov dword [esp + 0x14], eax
jne 0x4ca678
cmp byte [ecx + 0x70], 0
jne 0x4ca678
mov edi, 0x24
jmp 0x4ca8fd
test ebx, 0x1000000
jne 0x4ca786
test ebx, 0x100000
je 0x4ca786
cmp dword [edi + 0x378], 0
je 0x4ca786
mov eax, dword [edi + 0x21c]
mov dword [esp + 0x10], eax
push ebp
push esi
mov eax, dword [eax + 0xb4]
call eax
add esp, 8
test eax, eax
jne 0x4ca786
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
mov dword [esi + 0x48], 0x53564720
push eax
mov eax, dword [ebx + 0xa0]
push ebp
push 0
push edi
call eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0xa0]
push ebp
push 1
push edi
call eax
movzx ecx, word [esp + 0x4c]
add esp, 0x28
movzx eax, word [esp + 0x28]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x28], eax
movzx eax, word [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x4ca8ff
test ebx, 0x800000
jne 0x4ca653
push 0
push ebx
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
call fcn.004d2490
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4ca8fd
mov ecx, ebx
and ecx, 0x110
cmp ecx, 0x100
jne 0x4ca7db
mov eax, dword [esp + 0x104]
test eax, eax
je 0x4ca7db
movzx eax, byte [eax + ebp]
shl eax, 6
mov dword [esi + 0x28], eax
jmp 0x4ca8e2
push 0
push 0
lea eax, [esp + 0x38]
mov dword [esi + 0x48], 0x6f75746c
push ebp
push eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
call fcn.004d07a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ca8c6
cmp dword [esi + 0x48], 0x636f6d70
jne 0x4ca830
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x80], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x84], eax
jmp 0x4ca861
mov eax, dword [esp + 0x3c]
lea ecx, [esi + 0x6c]
movups xmm0, xmmword [eax + 0x14]
movups xmmword [ecx], xmm0
mov eax, dword [eax + 0x24]
mov dword [ecx + 0x10], eax
and dword [esi + 0x7c], 0xfffffdff
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4ca861
push 0
neg eax
push eax
push ecx
call fcn.004b7ed0
add esp, 0xc
test bl, 2
jne case.0x4ca899.1
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx + 0x198]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x194]
mov dword [esi + 0x8c], eax
cmp byte [ecx + 0x155], 0
je case.0x4ca899.2
mov eax, dword [ecx + 0x158]
cmp eax, 5
ja case.0x4ca899.2
jmp dword [eax*4 + 0x4ca918]
or dword [esi + 0x7c], 0x20
jmp case.0x4ca899.1
or dword [esi + 0x7c], 0x30
jmp case.0x4ca899.1
or dword [esi + 0x7c], 0x10
jmp case.0x4ca899.1
or dword [esi + 0x7c], 8
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.004ceeb0
add esp, 8
mov edi, eax
cmp dword [esp + 0x14], 0
jne 0x4ca8e2
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
cmp word [eax + 2], 0x18
jae 0x4ca8e2
or dword [esi + 0x7c], 0x100
mov eax, dword [esp + 0x30]
push 0
push dword [eax + 0x64]
lea eax, [esp + 0x104]
push 0
push eax
call fcn.004b6050
add esp, 0x10
mov eax, edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ab3d6
add esp, 0x10c
ret