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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1009e3c0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [0x10123348]
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x3de4]
cmp eax, dword [edi + 0x3de0]
je 0x10009754
call fcn.10009370
mov eax, dword [edi + 0x3de0]
cmp dword [edi + 0x3de8], eax
je 0x10009b6e
mov dword [edi + 0x3de8], eax
mov dword [edi + 0xa8], 0
mov eax, dword [edi + 0x5b08]
mov esi, dword [edi + 0x5b10]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x100097a7
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x100097a0
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10009790
call fcn.10008d40
mov ecx, dword [edi + 0x47ec]
mov eax, dword [edi + 0x47e4]
mov dword [esp + 0xc], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x10], eax
cmp ecx, eax
je 0x100098d0
nop dword [eax + eax]
mov edi, dword [ecx]
mov esi, dword [0x10123348]
push 0
lea ecx, [edi + 0x48]
lea eax, [edi + 0x78]
mov dword [edi + 0x70], ecx
mov dword [edi + 0x74], eax
call fcn.10019cd0
mov ecx, dword [edi + 0x74]
push 0
call fcn.10019cd0
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 0x100098b7
push str.Background
xor edx, edx
mov ecx, edi
call fcn.10007030
mov esi, dword [edi + 0x70]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x100098b7
cmp eax, 1
jne 0x1000986b
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1000986b
cmp dword [eax + 0x20], 0
je 0x100098b7
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x1000989e
inc edx
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x1000988c
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ecx
jmp 0x10009891
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10019a40
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
mov ecx, dword [esp + 0xc]
add ecx, 4
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x10]
jne 0x100097d0
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x495c]
test eax, eax
je 0x100098f5
test dword [eax + 0xc], 0x2000
jne 0x100098f5
mov ebx, dword [eax + 0x300]
mov eax, dword [edi + 0x4964]
mov dword [esp + 0x1c], ebx
jmp 0x10009909
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x10009907
mov eax, dword [edi + 0x4964]
jmp 0x10009909
xor eax, eax
mov esi, dword [edi + 0x3e20]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x3e18]
lea eax, [esi + eax*4]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x10009971
mov edi, dword [esp + 0xc]
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x10009966
cmp byte [ecx + 0xb1], 0
jne 0x10009966
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10009966
cmp ecx, ebx
je 0x10009966
cmp ecx, edi
je 0x10009966
shr edx, 0x19
and edx, 1
call fcn.100089e0
mov eax, dword [esp + 0x10]
add esi, 4
cmp esi, eax
jne 0x10009930
mov edi, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x1000999b
cmp byte [ecx + 0xaa], 0
je 0x1000999b
cmp byte [ecx + 0xb1], 0
jne 0x1000999b
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.100089e0
inc esi
cmp esi, 2
jl 0x10009973
cmp byte [edi + 0x44], 0
je 0x100099d1
mov ecx, dword [edi + 0x4ac8]
cmp ecx, 0xffffffff
je 0x100099d1
push dword [edi + 0xdc0]
movss xmm0, dword [edi + 0x3854]
push dword [edi + 0xdbc]
sub esp, 8
call fcn.10004dc0
add esp, 0x10
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov ecx, dword [edi + 0x47ec]
mov eax, dword [edi + 0x47e4]
mov dword [esp + 0xc], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x10009b41
mov ebx, dword [ecx]
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x70]
mov eax, dword [eax]
mov edi, dword [ecx]
add eax, edi
push eax
call fcn.10019cd0
mov esi, dword [ebx + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x10009a47
shl eax, 2
push eax
mov eax, dword [ebx + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edi*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, esi
push 0
call fcn.10019cd0
cmp dword [ebx + 0x34], 0
je 0x10009acc
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10007030
mov esi, dword [ebx + 0x70]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x10009acc
cmp eax, 1
jne 0x10009a80
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10009a80
cmp dword [eax + 0x20], 0
je 0x10009acc
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x10009ab3
inc edx
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x10009aa1
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, ecx
jmp 0x10009aa6
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10019a40
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [ebx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [ebx + 0x40], eax
mov edi, dword [ebx + 0x50]
mov eax, dword [ebx + 0x48]
lea eax, [edi + eax*4]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x10009b16
mov ebx, eax
nop
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
jle 0x10009b0b
lea ecx, [eax + eax*4]
shl ecx, 3
nop
mov edx, dword [esi + 8]
cmp dword [ecx + edx - 0xc], 0
jne 0x10009b0b
cmp dword [ecx + edx - 8], 0
jne 0x10009b0b
dec eax
sub ecx, 0x28
mov dword [esi], eax
test eax, eax
jg 0x10009af0
add edi, 4
cmp edi, ebx
jne 0x10009ae0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0xc]
add ecx, 4
add dword [edi + 0xa0], eax
mov eax, dword [ebx + 0x40]
add dword [edi + 0xa4], eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x10009a04
mov eax, dword [edi + 0x5b08]
mov esi, dword [edi + 0x5b10]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x10009b6e
cmp dword [esi + 4], 5
jne 0x10009b67
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10009b57
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100841e2
mov esp, ebp
pop ebp
ret