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

Disassembly:
sub esp, 0x34
mov ecx, dword [0x6bf1e4]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
xor ebp, ebp
push edi
xor edi, edi
cmp ecx, ebp
mov esi, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
je 0x5ca2d8
mov edi, 1
mov edx, dword [0x6bf288]
cmp edx, ebp
je 0x5ca31b
mov eax, dword [esi + 0x34]
test eax, 0x10000
jne 0x5ca31b
cmp ecx, ebp
jne 0x5ca31b
mov ecx, dword [edx + 0x1c]
cmp ecx, ebp
mov dword [esp + 0x18], 1
je 0x5ca319
shr eax, 0x1b
and eax, 1
push eax
mov eax, dword [esi + 0x130]
push eax
push esi
push ebx
push edx
call ecx
add esp, 0x14
mov edi, eax
jmp 0x5ca31b
xor edi, edi
mov ecx, dword [0x6bf1f4]
test byte [ecx + 0xd8], 1
jne 0x5ca379
cmp edi, ebp
jne 0x5ca379
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
shr edx, 8
push edx
push eax
call fcn.0060c8a0
add esp, 8
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x5ca379
mov ecx, dword [esi + 0x64]
mov ebp, dword [eax + 4]
lea ebx, [ecx + eax + 8]
test dword [esi + 0x34], 0x800000
mov dword [esp + 0x10], ebx
je 0x5ca474
lea edx, [esi + 0x178]
push edx
push ebx
call fcn.005c6490
add esp, 8
jmp 0x5ca474
mov eax, dword [0x6bf1f4]
test byte [eax + 0xd8], 1
jne 0x5ca3a0
mov ecx, dword [ebx]
test byte [ecx + 0x4e], 1
jne 0x5ca3a0
cmp edi, ebp
jne 0x5ca3a0
push ebx
call fcn.005c9bf0
add esp, 4
test eax, eax
jne 0x5ca3f3
mov edx, dword [ebx]
mov eax, dword [edx + 0x48]
mov dword [esi + 0x144], ebp
cmp dword [0x6bf290], ebp
je 0x5ca3eb
mov ecx, dword [0x6bec78]
mov edx, dword [ecx]
mov dword [edx + 0x16c], ebp
mov ecx, dword [0x6bec78]
mov edx, dword [ecx]
mov dword [edx + 0x168], ebp
mov ecx, dword [0x6bec78]
mov edx, dword [ecx]
mov dword [edx + 0x174], ebp
mov ecx, dword [0x6bec78]
mov edx, dword [ecx]
mov dword [edx + 0x170], ebp
push ebx
push eax
call dword [eax + 8]
add esp, 8
test edi, edi
mov ebp, dword [esi + 0x140]
jne 0x5ca466
test dword [esi + 0x34], 0x4000000
jne 0x5ca466
test ebp, ebp
je 0x5ca410
test byte [ebp + 8], 1
jne 0x5ca424
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x5ca466
mov eax, dword [esi + 0x144]
test eax, eax
je 0x5ca466
lea eax, [esi + 0x170]
push eax
lea ecx, [esi + 0x168]
push ecx
mov ecx, dword [ebx + 0xc]
lea edx, [esi + 0x158]
push edx
mov edx, dword [ebx + 4]
lea eax, [esi + 0x148]
push eax
push ebp
shr ecx, 8
push ecx
push edx
call fcn.0060cf50
add esp, 0x1c
test eax, eax
mov dword [esp + 0x14], eax
je 0x5ca466
mov dword [esi + 0x140], 0
mov eax, dword [esi + 0x64]
lea ebx, [eax + esi + 0x148]
mov dword [esp + 0x10], ebx
mov eax, dword [0x6bf1e8]
test eax, eax
je 0x5ca6e3
mov ecx, dword [0x6be098]
test ecx, ecx
je 0x5ca4ae
mov eax, dword [esi + 0x140]
test eax, eax
je 0x5cac3b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.005c9e30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edi, dword [eax + 8]
test edi, edi
mov ecx, dword [eax + 4]
je 0x5ca6df
test ecx, ecx
mov ebx, dword [0x6bf498]
je 0x5ca685
mov edx, dword [0x6bf1f4]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0xd8]
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
add eax, 0xa
push eax
push 1
push ebx
call dword [edx + 4]
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [edi + 0xc], ebx
je 0x5ca6cd
mov ecx, dword [esp + 0x10]
fild dword [ecx]
lea eax, [ebx + 8]
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x674670]
fadd dword [edi]
call fcn.00667ad0
mov edx, dword [esp + 0x10]
mov word [ebx], ax
fild dword [edx + 4]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x674670]
fadd dword [edi + 4]
call fcn.00667ad0
mov ecx, dword [edi + 0xc]
mov word [ecx + 2], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ca5ab
mov ebx, eax
fild dword [ebx + 0x10]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x674670]
call fcn.00667ad0
movsx edx, ax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd dword [edi]
fstp dword [edi]
fild dword [ebx + 0x14]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x674670]
call fcn.00667ad0
movsx eax, ax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x5ca607
fild dword [esi + 0x150]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x674670]
call fcn.00667ad0
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd dword [edi]
fstp dword [edi]
fild dword [esi + 0x154]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x674670]
call fcn.00667ad0
movsx edx, ax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd dword [edi + 4]
fstp dword [edi + 4]
mov ax, word [ebp + 2]
test ax, ax
je 0x5ca622
movzx ecx, ax
mov eax, dword [esp + 0x18]
cdq
idiv ecx
jmp 0x5ca624
xor eax, eax
mov edx, dword [edi + 0xc]
mov word [edx + 4], ax
mov eax, dword [edi + 0xc]
mov cx, word [ebp + 2]
mov word [eax + 6], cx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5ca65c
mov edx, dword [0x6bf1f4]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
call dword [ecx + 0xd4]
add esp, 0xc
mov eax, dword [esi + 0x140]
test eax, eax
je 0x5ca6cd
mov eax, dword [esp + 0x48]
push eax
call fcn.005c9e30
add esp, 4
pop edi
pop esi
pop ebp
mov dword [0x6be098], 1
pop ebx
add esp, 0x34
ret
mov ecx, dword [ebx]
push 0xa
push 1
push ebx
call dword [ecx + 4]
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [edi + 0xc], esi
je 0x5ca6cd
mov ebx, dword [esp + 0x10]
fild dword [ebx]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd dword [edi]
call fcn.00667ad0
mov word [esi], ax
fild dword [ebx + 4]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd dword [edi + 4]
call fcn.00667ad0
mov edx, dword [edi + 0xc]
mov word [edx + 2], ax
pop edi
pop esi
pop ebp
mov dword [0x6be098], 1
pop ebx
add esp, 0x34
ret
test ecx, ecx
jne 0x5ca6cd
mov ecx, dword [esi + 0x12c]
test ecx, ecx
jne 0x5ca6f5
test ebp, ebp
je 0x5ca85c
mov eax, dword [esi + 0x34]
test eax, 0x10000
jne 0x5ca845
test ecx, ecx
jne 0x5ca845
cmp word [ebp], cx
je 0x5ca845
test eax, 0x800000
je 0x5ca72a
lea eax, [esi + 0xfc]
push eax
push 1
jmp 0x5ca83b
test eax, 0x4000000
jne 0x5ca832
test byte [ebp + 8], 1
je 0x5ca832
mov ecx, dword [0x6bf1f4]
mov edx, dword [ecx + 0xd4]
mov eax, dword [edx + 0x24]
mov ecx, dword [esi + 0x104]
test eax, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
je 0x5ca784
lea edi, [ecx + edx + 0x20000]
mov ecx, dword [esi + 0x108]
mov edx, dword [eax + 0xc]
sar edi, 0x10
lea ebx, [ecx + edx + 0x20000]
sar ebx, 0x10
and edi, 0xfffffffc
and ebx, 0xfffffffc
jmp 0x5ca7a1
lea edi, [ecx + edx + 0x8000]
mov ecx, dword [esi + 0x108]
mov edx, dword [eax + 0xc]
lea ebx, [ecx + edx + 0x8000]
sar edi, 0x10
sar ebx, 0x10
mov eax, dword [esi + 0x10c]
mov edx, dword [esi + 0x110]
add edi, eax
lea eax, [esp + 0x1c]
add ebx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebp
mov dword [0x6be2d8], eax
call fcn.005bdee0
test eax, eax
je 0x5ca817
mov eax, dword [0x6bf288]
test eax, eax
je 0x5ca80d
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x5ca80d
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6bec78]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.005ca1c0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, dword [0x6bf288]
push eax
call dword [eax + 0x24]
add esp, 0x18
push ebx
push edi
push ebp
call fcn.005c79b0
jmp 0x5ca81f
push ebx
push edi
push ebp
call fcn.005c7480
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov dword [0x6be2d8], 0
jmp 0x5ca845
lea ecx, [esi + 0x104]
push ecx
push 0
push ebx
push ebp
call fcn.005c9f30
add esp, 0x10
mov eax, dword [esi + 0x140]
test eax, eax
je 0x5ca85c
mov edx, dword [esp + 0x48]
push edx
call fcn.005c9e30
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5ca8fe
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.005ca1c0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x6bf288]
add esp, 0xc
test ecx, ecx
lea ebx, [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], ebx
je 0x5ca8ef
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x5ca8ef
mov eax, dword [esi + 0x34]
test eax, 0x7e0000
jne 0x5ca8c0
mov edx, 1
jmp 0x5ca8c2
xor edx, edx
push edx
mov edx, dword [esi + 0x64]
test edx, edx
setne dl
shr eax, 0x1b
and eax, 1
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi + 0x130]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push edx
push ecx
call edi
add esp, 0x20
mov eax, dword [esi + 0x34]
shr eax, 0x13
and eax, 1
mov dword [esi + 0x130], eax
test dword [esi + 0x34], 0x800000
jne 0x5cab4c
jmp 0x5ca910
mov ecx, dword [esi + 0x104]
mov edx, dword [esi + 0x108]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x34]
mov eax, ecx
shr eax, 0x14
and eax, 1
mov dword [esp + 0x20], edx
jne 0x5ca9e8
test ecx, 0x200000
jne 0x5ca9e8
mov eax, dword [esi + 0x2c]
mov ebp, dword [ebx]
mov edi, dword [esp + 0x1c]
mov edx, dword [esi + 0x30]
mov ecx, dword [ebx + 4]
add eax, ebp
add edi, eax
mov eax, dword [esp + 0x20]
add ecx, edx
lea edx, [esp + 0x1c]
add eax, ecx
push 0x5fff
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.005c6510
add esp, 8
test eax, eax
je 0x5caac4
mov eax, dword [esi + 0x34]
test eax, 0x20000
je 0x5ca9cc
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 8]
and eax, 0xffff
cmp edx, eax
jne 0x5ca9cc
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x28]
mov edi, dword [esp + 0x1c]
mov edx, dword [esi + 0x24]
add ecx, eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
add edi, edx
push 0x5fff
push ecx
mov dword [esp + 0x24], edi
call fcn.005c6510
add esp, 8
test eax, eax
je 0x5caac4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
pop edi
mov dword [esi + 0x104], ecx
mov dword [esi + 0x108], edx
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
test eax, eax
jne 0x5ca9f0
xor ebp, ebp
jmp 0x5ca9fc
lea edx, [esi + 0x38]
push edx
call dword [esi + 0x3c]
add esp, 4
mov ebp, eax
test dword [esi + 0x34], 0x200000
jne 0x5caa09
xor ebx, ebx
jmp 0x5caa15
lea eax, [esi + 0x38]
push eax
call dword [esi + 0x3c]
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0x68]
cmp ebp, eax
jg 0x5cab21
mov ecx, eax
neg ecx
cmp ebp, ecx
jl 0x5cab21
cmp ebx, eax
jg 0x5cab21
cmp ebx, ecx
jl 0x5cab21
mov ecx, dword [esi + 0x74]
push ecx
push ebx
call fcn.005c6830
mov edx, dword [esi + 0x6c]
push edx
push ebp
mov edi, eax
call fcn.005c6830
add edi, eax
mov eax, dword [esi + 0x70]
push eax
push ebp
call fcn.005c6830
mov ecx, dword [esi + 0x78]
push ecx
push ebx
mov ebp, eax
call fcn.005c6830
mov ecx, dword [esp + 0x3c]
add ebp, eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x3c]
add ecx, edi
add eax, ebp
push 0x5fff
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
call fcn.005c6510
add esp, 0x28
test eax, eax
jne 0x5ca9cc
mov eax, dword [esi + 0x34]
test eax, 0x100000
je 0x5caab2
test eax, 0x200000
je 0x5caab2
mov eax, 0xfffffffe
jmp 0x5caab5
or eax, 0xffffffff
push eax
lea eax, [esi + 0x38]
push eax
call dword [esi + 0x40]
mov ebx, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esi + 0x104]
mov edi, dword [esi + 0x10c]
mov ebp, dword [esi + 0x110]
mov eax, ecx
sar eax, 0x10
and eax, 0xfffffffc
add edi, eax
shl eax, 0x10
sub ecx, eax
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 0x108]
mov eax, ecx
sar eax, 0x10
and eax, 0xfffffffc
add ebp, eax
shl eax, 0x10
sub ecx, eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], ebp
mov dword [esi + 0x108], ecx
test dword [esi + 0x34], 0x800000
je 0x5ca910
jmp 0x5cab4c
mov eax, dword [esi + 0x34]
test eax, 0x100000
je 0x5cab39
test eax, 0x200000
je 0x5cab39
mov eax, 0xfffffffe
jmp 0x5cab3c
or eax, 0xffffffff
push eax
lea eax, [esi + 0x38]
push eax
call dword [esi + 0x40]
add esp, 8
call fcn.005ca140
mov ecx, dword [esi + 0x34]
mov eax, ecx
shr eax, 0x14
and eax, 1
jne 0x5cabc3
test ecx, 0x200000
jne 0x5cabc3
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x17c]
push edx
mov edx, dword [esi + 0x178]
push eax
push ecx
push edx
call fcn.00510c00
mov eax, dword [esi + 0x34]
add esp, 0x14
test eax, 0x20000
je 0x5cac1b
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 8]
and eax, 0xffff
cmp edx, eax
jne 0x5cac1b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00510c00
add esp, 0x14
jmp 0x5cac1b
xor edi, edi
cmp eax, edi
jne 0x5cabcf
mov dword [esp + 0x24], edi
jmp 0x5cabdd
lea ecx, [esp + 0x24]
lea eax, [esi + 0x38]
push ecx
push eax
call dword [eax]
add esp, 8
test dword [esi + 0x34], 0x200000
jne 0x5cabec
mov dword [esp + 0x28], edi
jmp 0x5cabfa
lea edx, [esp + 0x28]
lea eax, [esi + 0x38]
push edx
push eax
call dword [eax]
add esp, 8
mov ecx, dword [0x6bf1f4]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x28]
add ecx, 4
push ecx
push edx
push eax
call fcn.00510ae0
add esp, 0x10
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea eax, [esi + 0xfc]
push eax
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.00510c00
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret