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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x1014ec70]
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx + 0x3dbc]
cmp eax, dword [ebx + 0x3db8]
je 0x10015c4f
call fcn.10015930
mov eax, dword [ebx + 0x3dc0]
mov edx, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
mov eax, dword [ebx + 0x3db8]
mov dword [ebp - 8], eax
mov dword [ebx + 0x3dc0], eax
mov dword [ebx + 0xa8], 0
call fcn.10011b90
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x3fc0], ecx
je 0x10015d3a
nop
mov eax, dword [ebx + 0x3fc8]
mov edi, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
lea esi, [eax + 0x64]
push 0
mov ecx, esi
call fcn.100243e0
add esi, 0xc
sub edi, 1
jne 0x10015ca4
mov edi, dword [ebp - 0xc]
cmp dword [edi + 0x30], 0
je 0x10015d27
push str.Background
xor edx, edx
mov ecx, edi
call fcn.10011be0
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10015d27
cmp ecx, 1
jne 0x10015cec
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x10015cec
cmp dword [eax + 0x20], 0
je 0x10015d27
mov ecx, dword [edi + 0x68]
lea esi, [edi + 0x64]
mov edi, dword [esi]
cmp edi, ecx
jne 0x10015d1a
inc edi
test ecx, ecx
je 0x10015d08
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10015d0d
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.100241f0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebx + 0x3fc0]
jne 0x10015c90
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x10015d47
call fcn.10015530
mov eax, dword [ebx + 0x411c]
test eax, eax
je 0x10015d6b
test dword [eax + 8], 0x2000
jne 0x10015d6b
mov edi, dword [eax + 0x2e8]
mov eax, dword [ebx + 0x4124]
mov dword [ebp - 0x10], edi
jmp 0x10015d7e
xor edi, edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x10015d7c
mov eax, dword [ebx + 0x4124]
jmp 0x10015d7e
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x3dd0], esi
je 0x10015dd3
nop
mov eax, dword [ebx + 0x3dd8]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0x8e], 0
je 0x10015dca
cmp byte [ecx + 0x95], 0
jne 0x10015dca
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x10015dca
cmp ecx, edi
je 0x10015dca
cmp ecx, dword [ebp - 0x14]
je 0x10015dca
shr edx, 0x19
and edx, 1
call fcn.10015150
inc esi
cmp esi, dword [ebx + 0x3dd0]
jne 0x10015d90
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x10]
test ecx, ecx
je 0x10015dfd
cmp byte [ecx + 0x8e], 0
je 0x10015dfd
cmp byte [ecx + 0x95], 0
jne 0x10015dfd
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.10015150
inc esi
cmp esi, 2
jl 0x10015dd5
cmp byte [ebx + 0x60], 0
je 0x10015e3b
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x10015e3b
mov ecx, dword [ebx + 0x4148]
cmp ecx, 0xffffffff
je 0x10015e3b
push dword [ebx + 0xdbc]
movss xmm0, dword [ebx + 0x3850]
push dword [ebx + 0xdb8]
sub esp, 8
call fcn.10010a60
add esp, 0x10
xor ecx, ecx
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov dword [ebp - 0x18], ecx
cmp dword [ebx + 0x3fc0], ecx
jle 0x10015fe9
mov eax, dword [ebx + 0x3fc8]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x70]
add eax, ecx
mov dword [ebp - 0xc], ecx
push eax
lea ecx, [edi + 0x64]
call fcn.100243e0
mov eax, dword [edi + 0x70]
test eax, eax
je 0x10015ea7
mov ecx, dword [ebp - 0xc]
shl eax, 2
push eax
mov eax, dword [edi + 0x6c]
push dword [edi + 0x78]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [edi + 0x70]
push 0
call fcn.100243e0
cmp dword [edi + 0x34], 0
je 0x10015f20
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.10011be0
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10015f20
cmp ecx, 1
jne 0x10015ede
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x10015ede
cmp dword [eax + 0x20], 0
je 0x10015f20
mov edx, dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
cmp edx, ecx
jne 0x10015f11
inc edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x10015efe
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
add eax, ecx
jmp 0x10015f03
mov eax, 8
cmp eax, edx
lea ecx, [edi + 0x64]
cmovg edx, eax
push edx
call fcn.100241f0
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x6c]
mov edx, dword [ebp - 8]
mov dword [eax + ecx*4], edx
inc dword [edi + 0x64]
mov edx, dword [0x1014ec70]
mov byte [edi + 0x38], 1
cmp dword [edi + 0x64], 0
jle 0x10015f35
mov eax, dword [edi + 0x6c]
jmp 0x10015f37
xor eax, eax
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x64]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], ecx
mov eax, dword [edx + 0x58]
mov ecx, dword [edx + 0x5c]
mov dword [edi + 0x5c], eax
xor eax, eax
mov dword [edi + 0x60], ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x64], eax
jle 0x10015fc7
nop
mov eax, dword [edi + 0x6c]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
test eax, eax
je 0x10015fa3
mov ebx, dword [edx + 8]
lea ecx, [eax + eax*4]
cmp dword [ebx + ecx*8 - 0xc], 0
jne 0x10015fa3
cmp dword [ebx + ecx*8 - 8], 0
jne 0x10015fa3
dec eax
mov dword [edx], eax
mov eax, dword [edi + 0x44]
add eax, dword [edx + 0x18]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x44], eax
inc ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0xc]
add dword [edi + 0x40], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [edi + 0x64]
jl 0x10015f80
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add dword [ebx + 0xa0], eax
inc ecx
mov eax, dword [edi + 0x40]
add dword [ebx + 0xa4], eax
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebx + 0x3fc0]
jl 0x10015e60
xor esi, esi
cmp dword [ebx + 0x523c], esi
jle 0x10016024
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x5244]
add eax, edi
cmp dword [eax + 4], 5
jne 0x10016018
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x523c]
jl 0x10016000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008dd76
mov esp, ebp
pop ebp
ret