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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x10040040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [0x10040678]
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3f5c]
cmp eax, dword [ebx + 0x3f58]
je 0x1000aad4
call fcn.1000a700
mov eax, dword [ebx + 0x3f58]
cmp dword [ebx + 0x3f60], eax
je 0x1000af8b
mov dword [ebx + 0x3f60], eax
mov dword [ebx + 0xb4], 0
mov eax, dword [ebx + 0x5f14]
mov esi, dword [ebx + 0x5f1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1000ab27
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x1000ab20
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1000ab10
call fcn.1000a150
mov ecx, dword [ebx + 0x4ab4]
mov eax, dword [ebx + 0x4aac]
mov dword [esp + 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0xc], eax
cmp ecx, eax
je 0x1000ac8f
nop dword [eax + eax]
mov esi, dword [ecx]
mov ebx, dword [0x10040678]
lea edi, [esi + 0x50]
lea eax, [esi + 0x80]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1000ab86
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.1001bd80
mov dword [edi], 0
mov edi, dword [esi + 0x7c]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1000abae
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.1001bd80
mov dword [edi], 0
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], esi
cmp dword [esi + 0x38], 0
je 0x1000ac76
push str.Background
xor edx, edx
mov ecx, esi
call fcn.100081b0
mov edi, dword [esi + 0x78]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x1000ac76
cmp eax, 1
jne 0x1000ac2a
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000ac2a
cmp dword [eax + 0x20], 0
je 0x1000ac76
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x1000ac5d
inc edx
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x1000ac4b
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ecx
jmp 0x1000ac50
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.1001bd80
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
inc dword [esi + 0x44]
mov eax, dword [ebx + 0x18]
add dword [esi + 0x4c], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0x48], eax
mov ecx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0xc]
jne 0x1000ab50
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x4c84]
test eax, eax
je 0x1000acb4
test dword [eax + 0xc], 0x2000
jne 0x1000acb4
mov edi, dword [eax + 0x314]
mov ebx, dword [ebx + 0x4c8c]
mov dword [esp + 0x1c], edi
jmp 0x1000acc8
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x1000acc6
mov ebx, dword [ebx + 0x4c8c]
jmp 0x1000acc8
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov esi, dword [eax + 0x3fa8]
mov eax, dword [eax + 0x3fa0]
lea eax, [esi + eax*4]
mov dword [esp + 0xc], eax
cmp esi, eax
je 0x1000ad2d
nop word [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xba], 0
je 0x1000ad26
cmp byte [ecx + 0xc2], 0
jne 0x1000ad26
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1000ad26
cmp ecx, edi
je 0x1000ad26
cmp ecx, ebx
je 0x1000ad26
shr edx, 0x19
and edx, 1
call fcn.10009d50
mov eax, dword [esp + 0xc]
add esi, 4
cmp esi, eax
jne 0x1000acf0
xor esi, esi
nop
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x1000ad58
cmp byte [ecx + 0xba], 0
je 0x1000ad58
cmp byte [ecx + 0xc2], 0
jne 0x1000ad58
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10009d50
inc esi
cmp esi, 2
jl 0x1000ad30
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x44], 0
je 0x1000ad96
mov ecx, dword [edx + 0x4e9c]
cmp ecx, 0xffffffff
je 0x1000ad96
push dword [edx + 0xcc]
movss xmm0, dword [edx + 0x3990]
push dword [edx + 0xc8]
sub esp, 8
call fcn.10005c50
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [edx + 0xb0], 0
mov dword [edx + 0xac], 0
mov ecx, dword [edx + 0x4ab4]
mov eax, dword [edx + 0x4aac]
mov dword [esp + 0x18], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x1000af54
nop dword [eax]
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov ebx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, ecx
mov dword [esp + 0xc], ecx
cmp esi, edi
jle 0x1000ae16
test edi, edi
je 0x1000adfe
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x1000ae03
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.1001bd80
mov ecx, dword [esp + 0xc]
mov dword [ebx], esi
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 0x7c]
mov eax, dword [esi]
test eax, eax
je 0x1000ae63
shl eax, 2
push eax
mov eax, dword [ebx + 0x78]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1000ae5d
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.1001bd80
mov dword [esi], 0
cmp dword [ebx + 0x3c], 0
je 0x1000aee4
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.100081b0
mov esi, dword [ebx + 0x78]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x1000aee4
cmp eax, 1
jne 0x1000ae9c
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000ae9c
cmp dword [eax + 0x20], 0
je 0x1000aee4
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x1000aec7
inc ebx
test ecx, ecx
je 0x1000aeb5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000aeba
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.1001bd80
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebx + 0x44]
mov eax, dword [edi + 0x18]
add dword [ebx + 0x4c], eax
mov eax, dword [edi + 0xc]
add dword [ebx + 0x48], eax
mov edi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x50]
lea eax, [edi + eax*4]
mov dword [esp + 0xc], eax
cmp edi, eax
je 0x1000af29
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1000af22
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x1000af1e
cmp dword [eax + edx - 8], 0
jne 0x1000af1e
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x1000af03
mov eax, dword [esp + 0xc]
add edi, 4
cmp edi, eax
jne 0x1000aef5
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esp + 0x18]
add ecx, 4
add dword [edx + 0xac], eax
mov eax, dword [ebx + 0x48]
add dword [edx + 0xb0], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x1000add0
mov eax, dword [edx + 0x5f14]
mov esi, dword [edx + 0x5f1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1000af8b
nop word [eax + eax]
cmp dword [esi + 4], 5
jne 0x1000af84
mov eax, dword [esi + 0xc]
push esi
push edx
call eax
mov edx, dword [esp + 0x18]
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1000af70
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10035deb
mov esp, ebp
pop ebp
ret