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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1007a010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x1007a700]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x3dcc]
cmp eax, dword [edi + 0x3dc8]
je 0x1000aa8f
call fcn.1000a760
mov eax, dword [edi + 0x3dd0]
mov edx, 4
mov dword [ebp - 0xc], eax
mov ecx, edi
mov eax, dword [edi + 0x3dc8]
mov dword [ebp - 0x10], eax
mov dword [edi + 0x3dd0], eax
mov dword [edi + 0xa8], 0
call fcn.10007410
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x479c], ecx
je 0x1000ab77
nop
mov eax, dword [edi + 0x47a4]
mov ebx, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
lea esi, [eax + 0x64]
push 0
mov ecx, esi
call fcn.1001b460
add esi, 0xc
sub ebx, 1
jne 0x1000aae4
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x30], ebx
je 0x1000ab64
push str.Background
xor edx, edx
mov ecx, esi
call fcn.100083a0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1000ab64
cmp ecx, 1
jne 0x1000ab29
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x1000ab29
cmp dword [eax + 0x20], ebx
je 0x1000ab64
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x1000ab57
inc esi
test ecx, ecx
je 0x1000ab45
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000ab4a
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.1001b270
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [edi + 0x479c]
jne 0x1000aad0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x1000ab84
call fcn.1000a360
mov eax, dword [edi + 0x4900]
test eax, eax
je 0x1000aba8
test dword [eax + 8], 0x2000
jne 0x1000aba8
mov ebx, dword [eax + 0x2fc]
mov eax, dword [edi + 0x4908]
mov dword [ebp - 0x18], ebx
jmp 0x1000abbb
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x1000abb9
mov eax, dword [edi + 0x4908]
jmp 0x1000abbb
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x3de0], esi
je 0x1000ac13
nop dword [eax + eax]
mov eax, dword [edi + 0x3de8]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xa6], 0
je 0x1000ac0a
cmp byte [ecx + 0xad], 0
jne 0x1000ac0a
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x1000ac0a
cmp ecx, ebx
je 0x1000ac0a
cmp ecx, dword [ebp - 8]
je 0x1000ac0a
shr edx, 0x19
and edx, 1
call fcn.10009f80
inc esi
cmp esi, dword [edi + 0x3de0]
jne 0x1000abd0
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x18]
test ecx, ecx
je 0x1000ac3d
cmp byte [ecx + 0xa6], 0
je 0x1000ac3d
cmp byte [ecx + 0xad], 0
jne 0x1000ac3d
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.10009f80
inc esi
cmp esi, 2
jl 0x1000ac15
cmp byte [edi + 0x60], 0
je 0x1000ac7b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x1000ac7b
mov ecx, dword [edi + 0x492c]
cmp ecx, 0xffffffff
je 0x1000ac7b
push dword [edi + 0xdbc]
movss xmm0, dword [edi + 0x3850]
push dword [edi + 0xdb8]
sub esp, 8
call fcn.10006250
add esp, 0x10
xor ecx, ecx
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x479c], ecx
jle 0x1000ae2b
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 [ebp - 0x14], ecx
push eax
lea ecx, [ebx + 0x64]
call fcn.1001b460
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x1000ace7
mov ecx, dword [ebp - 0x14]
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.1001b460
cmp dword [ebx + 0x34], 0
je 0x1000ad5a
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.100083a0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1000ad5a
cmp ecx, 1
jne 0x1000ad1e
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000ad1e
cmp dword [eax + 0x20], 0
je 0x1000ad5a
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp esi, ecx
jne 0x1000ad4b
inc esi
test ecx, ecx
je 0x1000ad38
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000ad3d
mov eax, 8
cmp eax, esi
lea ecx, [ebx + 0x64]
cmovg esi, eax
push esi
call fcn.1001b270
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], edx
inc dword [ebx + 0x64]
mov edx, dword [0x1007a700]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x1000ad6f
mov eax, dword [ebx + 0x6c]
jmp 0x1000ad71
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 [ebp - 0x10], edx
cmp dword [ebx + 0x64], ecx
jle 0x1000ae06
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1000adee
lea eax, [ecx + ecx*4]
shl eax, 3
nop word [eax + eax]
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x1000adeb
cmp dword [eax + edx - 8], 0
jne 0x1000adeb
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x1000add0
mov edx, dword [ebp - 0x10]
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 [ebp - 0x10], edx
cmp edx, dword [ebx + 0x64]
jl 0x1000adb8
mov edi, dword [ebp - 0x1c]
add dword [edi + 0xa0], ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x40]
inc ecx
add dword [edi + 0xa4], eax
mov dword [ebp - 0xc], ecx
cmp ecx, dword [edi + 0x479c]
jl 0x1000aca0
xor esi, esi
cmp dword [edi + 0x5a24], esi
jle 0x1000ae64
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x5a2c]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x1000ae58
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 0x1000ae40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b324
mov esp, ebp
pop ebp
ret