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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x704034]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
xor eax, eax
mov esi, dword [edi + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [edi]
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4ca5c2
cmp dword [edi + 0x74], eax
jne 0x4ca5b1
test byte [edx + 0x4c], 8
jne 0x4ca5b1
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.00499460
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x28], esi
cmp dword [ebp + 0x1c], 0
jge 0x4ca621
movzx edx, byte [ecx + 0x18]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x70], ecx
jg 0x4ca5f2
push 0
push 0
push edx
mov edx, 0x2e
mov ecx, esi
call fcn.00499760
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4ca621
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x2e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x14], esi
cmp dword [eax + 0x14], esi
jle 0x4ca750
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ca645
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x4ca648
or eax, 0xffffffff
mov edx, dword [esp + 0x20]
mov ecx, edi
push eax
push dword [esp + 0x40]
call fcn.004ca4a0
mov dword [esp + 0x3c], eax
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ca671
movzx ecx, word [eax + esi*4]
mov eax, dword [esp + 0x18]
jmp 0x4ca679
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0x24]
mov eax, dword [eax]
movsx ecx, cx
add ecx, ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x4ca692
xor esi, esi
jmp 0x4ca6a6
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ca697
sub esi, ecx
and esi, 0x3fffffff
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x35]
push 0
push eax
call fcn.00478070
mov edi, eax
add esp, 8
test edi, edi
je 0x4ca70e
push 0x34
push 0
push edi
call fcn.00639370
or eax, 0xffffffff
mov byte [edi], 0x3b
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [esi + 1]
test eax, eax
jne 0x4ca6e8
or dword [edi + 4], 0x20800400
mov dword [edi + 8], eax
jmp 0x4ca707
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
test esi, esi
je 0x4ca700
push esi
push dword [esp + 0x4c]
push eax
call fcn.00638870
add esp, 0xc
mov eax, dword [edi + 8]
mov byte [esi + eax], 0
mov dword [edi + 0x18], 1
push edi
push dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov edx, 0x35
mov ecx, edi
call fcn.004affe0
mov edx, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.004b00f0
mov esi, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x24]
inc esi
add esp, 0xc
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
cmp esi, dword [eax + 0x14]
jl 0x4ca634
jmp 0x4ca752
xor ecx, ecx
mov edx, dword [esp + 0x20]
cmp edx, dword [eax]
jne 0x4ca9aa
cmp dword [ebp + 0x1c], 0
jle 0x4ca9aa
test byte [edx + 0x24], 0x20
jne 0x4ca809
mov ecx, dword [edi]
lea eax, [esp + 0x34]
push 0
push eax
mov edx, 0xab
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004afe20
mov esi, eax
add esp, 8
test esi, esi
je 0x4ca7a9
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
mov byte [esi + 1], 0x44
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, 0xa2
push 0
push eax
mov edi, dword [edi + 0x34]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004afe20
add esp, 8
test eax, eax
je 0x4ca7ed
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x2c], ecx
or ecx, 0xffffffff
mov dword [eax + 0x1c], edi
mov word [eax + 0x20], cx
mov edi, dword [esp + 0x40]
mov edx, 0x34
push eax
push esi
mov ecx, edi
call fcn.004affe0
add esp, 8
mov esi, eax
jmp 0x4ca995
mov eax, dword [esp + 0x24]
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], ecx
cmp si, word [eax + 0x32]
jae 0x4ca921
mov eax, dword [eax + 4]
movzx esi, word [eax + ecx*2]
mov ecx, edi
push esi
push dword [esp + 0x40]
call fcn.004ca4a0
mov dword [esp + 0x50], eax
add esp, 8
mov eax, dword [esp + 0x20]
movsx edx, si
add edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx*8]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4ca85c
xor esi, esi
jmp 0x4ca870
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ca861
sub esi, ecx
and esi, 0x3fffffff
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x35]
push 0
push eax
call fcn.00478070
mov edi, eax
add esp, 8
test edi, edi
je 0x4ca8d8
push 0x34
push 0
push edi
call fcn.00639370
or eax, 0xffffffff
mov byte [edi], 0x3b
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [esi + 1]
test eax, eax
jne 0x4ca8b2
or dword [edi + 4], 0x20800400
mov dword [edi + 8], eax
jmp 0x4ca8d1
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
test esi, esi
je 0x4ca8ca
push esi
push dword [esp + 0x38]
push eax
call fcn.00638870
add esp, 0xc
mov eax, dword [edi + 8]
mov byte [esi + eax], 0
mov dword [edi + 0x18], 1
push edi
push dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov edx, 0x2d
mov ecx, edi
call fcn.004affe0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push eax
call fcn.004b00f0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
mov eax, dword [esp + 0x24]
jl 0x4ca827
mov ecx, dword [edi]
push 0
push 0x34
call fcn.00478070
mov esi, eax
add esp, 8
test esi, esi
je 0x4ca984
push 0x34
push 0
push esi
call fcn.00639370
or eax, 0xffffffff
mov byte [esi], 0x13
mov word [esi + 0x22], ax
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ca962
mov dword [esi + 0xc], eax
mov eax, dword [eax + 4]
and eax, 0x200104
or dword [esi + 4], eax
mov ecx, esi
call fcn.004afd10
mov eax, dword [edi]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4ca995
push eax
push 0x706b1c
push edi
call fcn.0047b1c0
add esp, 0xc
jmp 0x4ca995
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ca995
mov ecx, dword [edi]
mov edx, eax
call fcn.004b03b0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push esi
call fcn.004b00f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
mov edx, ecx
lea ecx, [esp + 0x50]
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
call fcn.004aef90
cmp dword [edi + 0x24], 0
jne 0x4caa5c
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
mov edx, esi
mov ecx, edi
call fcn.004f3d30
mov edi, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [edi + 0x6c]
movzx edx, byte [eax + 0x18]
cmp dword [edi + 0x70], ecx
jg 0x4caa1d
push 0
push dword [ebp + 0x1c]
mov ecx, edi
push edx
mov edx, 0x96
call fcn.00499760
add esp, 0xc
jmp 0x4caa4f
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x1c]
mov dword [eax + ecx*4], 0x96
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test esi, esi
je 0x4caa60
mov ecx, esi
call fcn.004f4870
jmp 0x4caa60
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4caa73
mov ecx, dword [esp + 0x2c]
mov edx, eax
call fcn.004b03b0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4caab1
mov edx, dword [edi + 0x6c]
jns 0x4caa83
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4caaa4
mov eax, 0x716eec
mov dword [eax + 8], edx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret