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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1003f040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [0x1003f738]
push esi
push edi
mov dword [esp + 0x28], ebx
mov eax, dword [ebx + 0x3dfc]
cmp eax, dword [ebx + 0x3df8]
je 0x10008334
call fcn.10007f80
mov eax, dword [ebx + 0x3e00]
mov edx, 4
mov dword [esp + 0x20], eax
mov ecx, ebx
mov eax, dword [ebx + 0x3df8]
mov dword [esp + 0x14], eax
mov dword [ebx + 0x3e00], eax
mov dword [ebx + 0xa4], 0
call fcn.10005090
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x47f0], ecx
je 0x10008491
nop word [eax + eax]
mov eax, dword [ebx + 0x47f8]
mov esi, dword [0x1003f738]
push 0
mov edi, dword [eax + ecx*4]
lea ecx, [edi + 0x48]
lea eax, [edi + 0x78]
mov dword [edi + 0x70], ecx
mov dword [edi + 0x74], eax
call fcn.100180f0
mov ecx, dword [edi + 0x74]
push 0
call fcn.100180f0
mov byte [edi + 0x38], 1
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], edi
cmp dword [edi + 0x30], 0
je 0x1000847c
push str.Background
xor edx, edx
mov ecx, edi
call fcn.10005e40
mov esi, dword [edi + 0x70]
mov edx, eax
add esp, 4
mov dword [esp + 0x18], edx
mov eax, dword [edx]
test eax, eax
je 0x1000847c
cmp eax, 1
jne 0x1000842a
mov eax, dword [edx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000842a
cmp dword [eax + 0x20], 0
je 0x1000847c
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10008463
lea edx, [eax + 1]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x1000844d
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add eax, ecx
jmp 0x10008452
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10017e60
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
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
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebx + 0x47f0]
jne 0x10008380
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
je 0x100084a0
call fcn.10007bd0
mov eax, dword [ebx + 0x496c]
test eax, eax
je 0x100084c5
test dword [eax + 0xc], 0x2000
jne 0x100084c5
mov edi, dword [eax + 0x308]
mov eax, dword [ebx + 0x4974]
mov dword [esp + 0x18], edi
jmp 0x100084d9
xor edi, edi
mov dword [esp + 0x18], edi
test eax, eax
je 0x100084d7
mov eax, dword [ebx + 0x4974]
jmp 0x100084d9
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x3e30], esi
je 0x10008534
nop dword [eax + eax]
mov eax, dword [ebx + 0x3e38]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xaa], 0
je 0x1000852b
cmp byte [ecx + 0xb1], 0
jne 0x1000852b
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1000852b
cmp ecx, edi
je 0x1000852b
cmp ecx, dword [esp + 0x10]
je 0x1000852b
shr edx, 0x19
and edx, 1
call fcn.10007850
inc esi
cmp esi, dword [ebx + 0x3e30]
jne 0x100084f0
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x18]
test ecx, ecx
je 0x1000855e
cmp byte [ecx + 0xaa], 0
je 0x1000855e
cmp byte [ecx + 0xb1], 0
jne 0x1000855e
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10007850
inc esi
cmp esi, 2
jl 0x10008536
cmp byte [ebx + 0x44], 0
je 0x1000859e
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
je 0x1000859e
mov ecx, dword [ebx + 0x4ad8]
cmp ecx, 0xffffffff
je 0x1000859e
push dword [ebx + 0xdbc]
movss xmm0, dword [ebx + 0x384c]
push dword [ebx + 0xdb8]
sub esp, 8
call fcn.100047f0
add esp, 0x10
xor ecx, ecx
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x9c], 0
mov dword [esp + 0x14], ecx
cmp dword [ebx + 0x47f0], ecx
jle 0x100086fe
mov eax, dword [ebx + 0x47f8]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
mov eax, dword [eax]
mov ebx, dword [ecx]
add eax, ebx
push eax
call fcn.100180f0
mov esi, dword [edi + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x1000860a
shl eax, 2
push eax
mov eax, dword [edi + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ebx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, esi
push 0
call fcn.100180f0
cmp dword [edi + 0x34], 0
je 0x10008693
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.10005e40
mov esi, dword [edi + 0x70]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x10008693
cmp eax, 1
jne 0x10008647
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x10008647
cmp dword [eax + 0x20], 0
je 0x10008693
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x1000867a
inc edx
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x10008668
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ecx
jmp 0x1000866d
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10017e60
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
inc dword [esi]
inc dword [edi + 0x3c]
mov eax, dword [ebx + 0x18]
add dword [edi + 0x44], eax
mov eax, dword [ebx + 0xc]
add dword [edi + 0x40], eax
xor ebx, ebx
cmp dword [edi + 0x48], ebx
jle 0x100086d3
nop word [eax + eax]
mov eax, dword [edi + 0x50]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi]
test eax, eax
jle 0x100086cd
lea ecx, [eax + eax*4]
shl ecx, 3
mov edx, dword [esi + 8]
cmp dword [ecx + edx - 0xc], 0
jne 0x100086cd
cmp dword [ecx + edx - 8], 0
jne 0x100086cd
dec eax
sub ecx, 0x28
mov dword [esi], eax
test eax, eax
jg 0x100086b2
inc ebx
cmp ebx, dword [edi + 0x48]
jl 0x100086a0
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x14]
inc ecx
add dword [ebx + 0x9c], eax
mov eax, dword [edi + 0x40]
add dword [ebx + 0xa0], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebx + 0x47f0]
jl 0x100085c4
xor esi, esi
cmp dword [ebx + 0x5abc], esi
jle 0x10008734
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x5ac4]
add eax, edi
cmp dword [eax + 4], 5
jne 0x10008728
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x5abc]
jl 0x10008710
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10034503
mov esp, ebp
pop ebp
ret