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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1003a00c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [0x1003a5f8]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x3dcc]
cmp eax, dword [edi + 0x3dc8]
je 0x10008c84
call fcn.100089a0
mov eax, dword [edi + 0x3dd0]
mov edx, 4
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, dword [edi + 0x3dc8]
mov dword [esp + 0x14], eax
mov dword [edi + 0x3dd0], eax
mov dword [edi + 0xa8], 0
call fcn.100055f0
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x479c], ecx
je 0x10008d7d
nop word [eax + eax]
mov eax, dword [edi + 0x47a4]
mov ebx, 2
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
lea esi, [eax + 0x64]
push 0
mov ecx, esi
call fcn.10018550
add esi, 0xc
sub ebx, 1
jne 0x10008ce5
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x30], ebx
je 0x10008d68
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10006560
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10008d68
cmp ecx, 1
jne 0x10008d2c
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x10008d2c
cmp dword [eax + 0x20], ebx
je 0x10008d68
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x10008d5a
inc esi
test ecx, ecx
je 0x10008d48
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10008d4d
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.100182b0
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, dword [edi + 0x479c]
jne 0x10008cd0
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
je 0x10008d8c
call fcn.10008380
mov eax, dword [edi + 0x4900]
test eax, eax
je 0x10008db1
test dword [eax + 8], 0x2000
jne 0x10008db1
mov ebx, dword [eax + 0x2fc]
mov eax, dword [edi + 0x4908]
mov dword [esp + 0x18], ebx
jmp 0x10008dc5
xor ebx, ebx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x10008dc3
mov eax, dword [edi + 0x4908]
jmp 0x10008dc5
xor eax, eax
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x3de0], esi
je 0x10008e24
nop word [eax + eax]
mov eax, dword [edi + 0x3de8]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xa6], 0
je 0x10008e1b
cmp byte [ecx + 0xad], 0
jne 0x10008e1b
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x10008e1b
cmp ecx, ebx
je 0x10008e1b
cmp ecx, dword [esp + 0xc]
je 0x10008e1b
shr edx, 0x19
and edx, 1
call fcn.10008030
inc esi
cmp esi, dword [edi + 0x3de0]
jne 0x10008de0
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x10008e4e
cmp byte [ecx + 0xa6], 0
je 0x10008e4e
cmp byte [ecx + 0xad], 0
jne 0x10008e4e
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.10008030
inc esi
cmp esi, 2
jl 0x10008e26
cmp byte [edi + 0x60], 0
je 0x10008e8e
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
je 0x10008e8e
mov ecx, dword [edi + 0x492c]
cmp ecx, 0xffffffff
je 0x10008e8e
push dword [edi + 0xdbc]
movss xmm0, dword [edi + 0x3850]
push dword [edi + 0xdb8]
sub esp, 8
call fcn.100044a0
add esp, 0x10
xor ecx, ecx
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x479c], ecx
jle 0x10009043
mov eax, dword [edi + 0x47a4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x70]
add eax, ecx
mov dword [esp + 0x18], ecx
push eax
lea ecx, [ebx + 0x64]
call fcn.10018550
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x10008efd
mov ecx, dword [esp + 0x18]
shl eax, 2
push eax
mov eax, dword [ebx + 0x6c]
push dword [ebx + 0x78]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebx + 0x70]
push 0
call fcn.10018550
cmp dword [ebx + 0x34], 0
je 0x10008f72
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10006560
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10008f72
cmp ecx, 1
jne 0x10008f35
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x10008f35
cmp dword [eax + 0x20], 0
je 0x10008f72
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp esi, ecx
jne 0x10008f62
inc esi
test ecx, ecx
je 0x10008f4f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10008f54
mov eax, 8
cmp eax, esi
lea ecx, [ebx + 0x64]
cmovg esi, eax
push esi
call fcn.100182b0
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x6c]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], edx
inc dword [ebx + 0x64]
mov edx, dword [0x1003a5f8]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x10008f87
mov eax, dword [ebx + 0x6c]
jmp 0x10008f89
xor eax, eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x54], eax
mov ecx, dword [edx + 0x5c]
mov eax, dword [edx + 0x58]
xor edx, edx
mov dword [ebx + 0x60], ecx
xor ecx, ecx
mov dword [ebx + 0x5c], eax
mov dword [esp + 0x14], edx
cmp dword [ebx + 0x64], ecx
jle 0x1000901b
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x10009002
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x10008ffe
cmp dword [eax + edx - 8], 0
jne 0x10008ffe
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10008fe3
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc edx
add ecx, dword [ebx + 0x44]
mov dword [ebx + 0x44], ecx
mov eax, dword [esi + 0xc]
add dword [ebx + 0x40], eax
mov dword [esp + 0x14], edx
cmp edx, dword [ebx + 0x64]
jl 0x10008fd1
mov edi, dword [esp + 0x20]
add dword [edi + 0xa0], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x40]
inc ecx
add dword [edi + 0xa4], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + 0x479c]
jl 0x10008eb4
xor esi, esi
cmp dword [edi + 0x5a24], esi
jle 0x10009074
xor ebx, ebx
nop
mov eax, dword [edi + 0x5a2c]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x10009068
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a24]
jl 0x10009050
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002fb8b
mov esp, ebp
pop ebp
ret