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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100ce00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x100cef00]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x3de4]
cmp eax, dword [edi + 0x3de0]
je 0x100479ef
call fcn.10047660
mov eax, dword [edi + 0x3de8]
mov edx, 4
mov dword [ebp - 0xc], eax
mov ecx, edi
mov eax, dword [edi + 0x3de0]
mov dword [ebp - 0x10], eax
mov dword [edi + 0x3de8], eax
mov dword [edi + 0xac], 0
call fcn.10044600
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x47b4], ecx
je 0x10047ad7
nop
mov eax, dword [edi + 0x47bc]
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.10057390
add esi, 0xc
sub ebx, 1
jne 0x10047a44
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x30], ebx
je 0x10047ac4
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10045450
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10047ac4
cmp ecx, 1
jne 0x10047a89
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x10047a89
cmp dword [eax + 0x20], ebx
je 0x10047ac4
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x10047ab7
inc esi
test ecx, ecx
je 0x10047aa5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10047aaa
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.100570f0
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 + 0x47b4]
jne 0x10047a30
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x10047ae4
call fcn.10047260
mov eax, dword [edi + 0x4914]
test eax, eax
je 0x10047b08
test dword [eax + 0xc], 0x2000
jne 0x10047b08
mov ebx, dword [eax + 0x300]
mov eax, dword [edi + 0x491c]
mov dword [ebp - 0x18], ebx
jmp 0x10047b1b
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x10047b19
mov eax, dword [edi + 0x491c]
jmp 0x10047b1b
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x3df8], esi
je 0x10047b73
nop dword [eax + eax]
mov eax, dword [edi + 0x3e00]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xaa], 0
je 0x10047b6a
cmp byte [ecx + 0xb1], 0
jne 0x10047b6a
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10047b6a
cmp ecx, ebx
je 0x10047b6a
cmp ecx, dword [ebp - 8]
je 0x10047b6a
shr edx, 0x19
and edx, 1
call fcn.10046e80
inc esi
cmp esi, dword [edi + 0x3df8]
jne 0x10047b30
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x18]
test ecx, ecx
je 0x10047b9d
cmp byte [ecx + 0xaa], 0
je 0x10047b9d
cmp byte [ecx + 0xb1], 0
jne 0x10047b9d
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10046e80
inc esi
cmp esi, 2
jl 0x10047b75
cmp byte [edi + 0x60], 0
je 0x10047bdb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x10047bdb
mov ecx, dword [edi + 0x4940]
cmp ecx, 0xffffffff
je 0x10047bdb
push dword [edi + 0xdc4]
movss xmm0, dword [edi + 0x386c]
push dword [edi + 0xdc0]
sub esp, 8
call fcn.10043d40
add esp, 0x10
xor ecx, ecx
mov dword [edi + 0xa8], 0
mov dword [edi + 0xa4], 0
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x47b4], ecx
jle 0x10047d8b
mov eax, dword [edi + 0x47bc]
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.10057390
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x10047c47
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.10057390
cmp dword [ebx + 0x34], 0
je 0x10047cba
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10045450
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10047cba
cmp ecx, 1
jne 0x10047c7e
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x10047c7e
cmp dword [eax + 0x20], 0
je 0x10047cba
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp esi, ecx
jne 0x10047cab
inc esi
test ecx, ecx
je 0x10047c98
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10047c9d
mov eax, 8
cmp eax, esi
lea ecx, [ebx + 0x64]
cmovg esi, eax
push esi
call fcn.100570f0
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 [0x100cef00]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x10047ccf
mov eax, dword [ebx + 0x6c]
jmp 0x10047cd1
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 0x10047d66
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x10047d4e
lea eax, [ecx + ecx*4]
shl eax, 3
nop word [eax + eax]
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x10047d4b
cmp dword [eax + edx - 8], 0
jne 0x10047d4b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10047d30
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 0x10047d18
mov edi, dword [ebp - 0x1c]
add dword [edi + 0xa4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x40]
inc ecx
add dword [edi + 0xa8], eax
mov dword [ebp - 0xc], ecx
cmp ecx, dword [edi + 0x47b4]
jl 0x10047c00
xor esi, esi
cmp dword [edi + 0x5a58], esi
jle 0x10047dc4
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x5a60]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x10047db8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a58]
jl 0x10047da0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10093402
mov esp, ebp
pop ebp
ret