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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x10270558]
push esi
push edi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 0x3dd8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x3ddc], eax
je 0x1000ca61
call fcn.1000c700
mov eax, dword [ebx + 0x3dd8]
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x3de0]
mov edx, 4
mov dword [ebp - 0xc], ecx
mov ecx, ebx
mov dword [ebx + 0x3de0], eax
mov dword [ebx + 0xa4], 0
call fcn.10009270
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x47d0], ecx
je 0x1000cbdf
nop word [eax + eax]
mov eax, dword [ebx + 0x47d8]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10270558]
mov dword [ebp - 0x10], eax
lea edi, [esi + 0x48]
lea eax, [esi + 0x78]
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1000cadc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001e6a0
mov dword [edi], 0
mov edi, dword [esi + 0x74]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1000cb04
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001e6a0
mov dword [edi], 0
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x60], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x5c], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], esi
cmp dword [esi + 0x30], 0
je 0x1000cbcc
push str.Background
xor edx, edx
mov ecx, esi
call fcn.1000a120
mov edi, dword [esi + 0x70]
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
mov eax, dword [edx]
test eax, eax
je 0x1000cbcc
cmp eax, 1
jne 0x1000cb86
mov eax, dword [edx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000cb86
cmp dword [eax + 0x20], 0
je 0x1000cbcc
mov ecx, dword [edi]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x1000cbb5
inc ecx
test eax, eax
je 0x1000cb9e
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x1000cba3
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1001e6a0
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], edx
inc dword [edi]
inc dword [esi + 0x3c]
mov eax, dword [edx + 0x18]
add dword [esi + 0x44], eax
mov eax, dword [edx + 0xc]
add dword [esi + 0x40], eax
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 0x47d0]
jne 0x1000caa0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x1000cbec
call fcn.1000c2d0
mov eax, dword [ebx + 0x4948]
test eax, eax
je 0x1000cc10
test dword [eax + 0xc], 0x2000
jne 0x1000cc10
mov edi, dword [eax + 0x300]
mov eax, dword [ebx + 0x4950]
mov dword [ebp - 0x14], edi
jmp 0x1000cc23
xor edi, edi
mov dword [ebp - 0x14], edi
test eax, eax
je 0x1000cc21
mov eax, dword [ebx + 0x4950]
jmp 0x1000cc23
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x3e10], esi
je 0x1000cc83
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebx + 0x3e18]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xaa], 0
je 0x1000cc7a
cmp byte [ecx + 0xb1], 0
jne 0x1000cc7a
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1000cc7a
cmp ecx, edi
je 0x1000cc7a
cmp ecx, dword [ebp - 8]
je 0x1000cc7a
shr edx, 0x19
and edx, 1
call fcn.1000bed0
inc esi
cmp esi, dword [ebx + 0x3e10]
jne 0x1000cc40
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x14]
test ecx, ecx
je 0x1000ccad
cmp byte [ecx + 0xaa], 0
je 0x1000ccad
cmp byte [ecx + 0xb1], 0
jne 0x1000ccad
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.1000bed0
inc esi
cmp esi, 2
jl 0x1000cc85
cmp byte [ebx + 0x44], 0
je 0x1000cceb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x1000cceb
mov ecx, dword [ebx + 0x4ab4]
cmp ecx, 0xffffffff
je 0x1000cceb
push dword [ebx + 0xdbc]
movss xmm0, dword [ebx + 0x384c]
push dword [ebx + 0xdb8]
sub esp, 8
call fcn.10008a90
add esp, 0x10
xor ecx, ecx
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x9c], 0
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x47d0], ecx
jle 0x1000ce8c
mov eax, dword [ebx + 0x47d8]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
mov dword [ebp - 0xc], ecx
mov edx, dword [ecx]
mov esi, dword [eax]
mov ebx, dword [ecx + 4]
add esi, edx
mov dword [ebp - 0x10], edx
cmp esi, ebx
jle 0x1000cd5e
test ebx, ebx
je 0x1000cd43
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, ebx
jmp 0x1000cd48
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.1001e6a0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], esi
mov esi, dword [edi + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x1000cda7
shl eax, 2
push eax
mov eax, dword [edi + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
push eax
call fcn.1012be50
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1000cda1
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001e6a0
mov dword [esi], 0
cmp dword [edi + 0x34], 0
je 0x1000ce2a
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.1000a120
mov esi, dword [edi + 0x70]
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
mov eax, dword [edx]
test eax, eax
je 0x1000ce2a
cmp eax, 1
jne 0x1000cde3
mov eax, dword [edx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000cde3
cmp dword [eax + 0x20], 0
je 0x1000ce2a
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
cmp ecx, ebx
jne 0x1000ce13
inc ecx
test ebx, ebx
je 0x1000cdfc
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
jmp 0x1000ce01
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001e6a0
mov ecx, dword [esi]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edx
inc dword [esi]
inc dword [edi + 0x3c]
mov eax, dword [edx + 0x18]
add dword [edi + 0x44], eax
mov eax, dword [edx + 0xc]
add dword [edi + 0x40], eax
xor ebx, ebx
cmp dword [edi + 0x48], ebx
jle 0x1000ce64
mov eax, dword [edi + 0x50]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1000ce5e
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [edx + eax - 0xc], 0
jne 0x1000ce5e
cmp dword [edx + eax - 8], 0
jne 0x1000ce5e
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x1000ce43
inc ebx
cmp ebx, dword [edi + 0x48]
jl 0x1000ce31
mov ebx, dword [ebp - 0x18]
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp - 8]
inc ecx
add dword [ebx + 0x9c], eax
mov eax, dword [edi + 0x40]
add dword [ebx + 0xa0], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 0x47d0]
jl 0x1000cd10
xor esi, esi
cmp dword [ebx + 0x5a98], esi
jle 0x1000cec4
xor edi, edi
nop dword [eax + eax]
mov eax, dword [ebx + 0x5aa0]
add eax, edi
cmp dword [eax + 4], 5
jne 0x1000ceb8
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x5a98]
jl 0x1000cea0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret