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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x102d944c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, dword [0x103f64e8]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x1be4]
cmp eax, dword [edi + 0x1be0]
je 0x10117783
call fcn.10117330
mov eax, dword [edi + 0x1be0]
mov edx, 4
mov ecx, edi
mov dword [edi + 0x1bec], eax
mov dword [edi + 0x36c], 0
call fcn.10114570
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x1dd0], ecx
je 0x10117898
nop word [eax + eax]
mov eax, dword [edi + 0x1dd8]
mov edi, 2
mov eax, dword [eax + ecx*4]
mov dword [esp + 0xc], eax
lea esi, [eax + 0xb0]
nop dword [eax + eax]
push 0
mov ecx, esi
call fcn.1012e0f0
add esi, 0xc
sub edi, 1
jne 0x101177e0
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x78], edi
mov edi, dword [esp + 0x20]
je 0x10117883
push str.Background
xor edx, edx
mov ecx, eax
call fcn.101145c0
add esp, 4
mov dword [esp + 0x24], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10117883
mov esi, dword [eax + 8]
lea edx, [ecx + ecx*4]
cmp dword [esi + edx*8 - 0xc], 0
jne 0x10117838
cmp dword [esi + edx*8 - 8], 0
jne 0x10117838
dec ecx
mov dword [eax], ecx
test ecx, ecx
je 0x10117883
mov esi, dword [esp + 0xc]
add esi, 0xb0
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x10117875
inc edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x10117863
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add eax, ecx
jmp 0x10117868
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1012e070
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + 0x1dd0]
jne 0x101177c0
mov ecx, dword [edi + 0x1f20]
test ecx, ecx
je 0x101178c1
test dword [ecx + 8], 0x2000
jne 0x101178c1
mov eax, dword [ecx + 0x360]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1f28]
jmp 0x101178d9
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x101178d7
mov eax, dword [edi + 0x1f28]
jmp 0x101178d9
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x1c00], esi
je 0x10117936
nop dword [eax + eax]
mov eax, dword [edi + 0x1c08]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xc3], 0
je 0x1011792d
cmp byte [ecx + 0xca], 0
jne 0x1011792d
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x1011792d
cmp ecx, dword [esp + 0xc]
je 0x1011792d
cmp ecx, dword [esp + 0x10]
je 0x1011792d
shr edx, 0x19
and edx, 1
call fcn.10116d60
inc esi
cmp esi, dword [edi + 0x1c00]
jne 0x101178f0
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x10117960
cmp byte [ecx + 0xc3], 0
je 0x10117960
cmp byte [ecx + 0xca], 0
jne 0x10117960
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.10116d60
inc esi
cmp esi, 2
jl 0x10117938
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
movss dword [esp + 0x2c], xmm0
mov ecx, 4
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x18], xmm0
nop word [eax + eax]
mov dword [eax + 4], 0
lea eax, [eax + 8]
mov dword [eax - 8], 0
sub ecx, 1
jne 0x10117990
cmp byte [edi + 0xb7], cl
je 0x101179f1
mov eax, dword [edi + 0x1f58]
cmp eax, 0xffffffff
je 0x101179f1
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [edi + 0x98]
push eax
call fcn.101397f0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0x28], xmm0
xor ecx, ecx
mov dword [edi + 0x368], 0
mov dword [edi + 0x364], 0
mov dword [esp + 0x14], ecx
cmp dword [edi + 0x1dd0], ecx
jle 0x10117cfc
nop word [eax + eax]
mov eax, dword [edi + 0x1dd8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0xb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
lea esi, [eax + 0xb0]
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [esp + 0x24], esi
push eax
mov ecx, esi
call fcn.1012e0f0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10117a79
mov ecx, dword [esp + 0xc]
shl eax, 2
push eax
mov eax, dword [esi + 8]
push dword [esi + 0x14]
lea eax, [eax + ecx*4]
push eax
call fcn.101febb0
add esp, 0xc
lea ecx, [esi + 0xc]
push 0
call fcn.1012e0f0
movss xmm1, dword [esp + 0x28]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10117b57
movss xmm2, dword [esp + 0x2c]
comiss xmm2, xmm0
mov ecx, dword [esp + 0x10]
jbe 0x10117b5b
movss xmm0, dword [edi + 0x164c]
movaps xmm3, xmm1
mulss xmm0, dword [ecx + 0x28]
addss xmm3, dword [0x102c1468]
addss xmm2, dword [0x102c1468]
movss xmm6, dword [ecx + 0xc]
movss xmm1, dword [edi + 0xe8]
movss xmm7, dword [ecx + 8]
movss xmm4, dword [edi + 0xe4]
movaps xmm5, xmm7
addss xmm5, dword [ecx + 0x10]
mulss xmm3, xmm0
mulss xmm2, xmm0
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm6
addss xmm3, xmm4
movss dword [esp + 0x30], xmm4
addss xmm0, dword [ecx + 0x14]
addss xmm2, xmm1
movss dword [esp + 0x34], xmm1
comiss xmm0, xmm1
jbe 0x10117b5b
comiss xmm2, xmm6
jbe 0x10117b5b
comiss xmm5, xmm4
jbe 0x10117b5b
comiss xmm3, xmm7
jbe 0x10117b5b
mov esi, dword [edi + 0x1f58]
mov edx, 1
push str.Foreground
call fcn.101145c0
movss xmm1, dword [esp + 0x10]
add esp, 4
mov edx, esi
mov ecx, eax
push dword [esp + 0x34]
push dword [esp + 0x34]
sub esp, 0xc
call fcn.1013ca40
mov esi, dword [esp + 0x38]
add esp, 0x14
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x7c], 0
je 0x10117be1
push str.Foreground
mov edx, 1
call fcn.101145c0
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10117bdd
mov edi, dword [eax + 8]
lea edx, [ecx + ecx*4]
cmp dword [edi + edx*8 - 0xc], 0
jne 0x10117b9c
cmp dword [edi + edx*8 - 8], 0
jne 0x10117b9c
dec ecx
mov dword [eax], ecx
test ecx, ecx
je 0x10117bdd
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x10117bcf
inc edx
mov dword [esp + 0xc], edx
test ecx, ecx
je 0x10117bbd
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, ecx
jmp 0x10117bc2
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1012e070
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
lea edx, [ecx + 0x80]
shr eax, 0xa
mov dword [ecx + 0x30], edx
and eax, 0xffffff01
mov byte [edx], 1
cmp dword [esi], 0
mov dword [esp + 0xc], eax
jle 0x10117c06
mov eax, dword [esi + 8]
jmp 0x10117c08
xor eax, eax
mov dword [edx + 0x10], eax
mov eax, dword [esi]
mov dword [edx + 4], eax
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [edx + 0x18], ecx
test al, al
je 0x10117c44
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x10117c5a
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], ecx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x44]
test al, al
lea eax, [esp + 0x3c]
cmovne ecx, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 0x20], ecx
mov ecx, dword [0x103f64e8]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xac]
mov dword [edx + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x28], ecx
xor ecx, ecx
mov dword [edx + 0x2c], eax
cmp dword [esi], ecx
jle 0x10117cd2
mov dword [esp + 0xc], ecx
mov edi, ecx
mov eax, dword [esi + 8]
mov eax, dword [eax + ecx*4]
add edi, dword [eax + 0x18]
mov dword [edx + 0xc], edi
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x24]
mov eax, dword [eax + ecx*4]
inc ecx
mov eax, dword [eax + 0xc]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [edx + 8], eax
cmp ecx, dword [esi]
jl 0x10117ca1
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xc]
add dword [edi + 0x364], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x14]
add dword [edi + 0x368], eax
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0x1dd0]
jl 0x10117a20
xor esi, esi
cmp dword [edi + 0x3018], esi
jle 0x10117d3c
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop dword [eax]
mov eax, dword [edi + 0x3020]
add eax, ecx
cmp dword [eax + 4], 5
jne 0x10117d2c
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x1c]
add esp, 8
inc esi
add ecx, 0x14
mov dword [esp + 0x14], ecx
cmp esi, dword [edi + 0x3018]
jl 0x10117d10
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.101fae3a
mov esp, ebp
pop ebp
ret