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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [0x461fe8]
mov dword [ebp - 0x10], edi
mov eax, dword [edi + 0x3dd8]
mov dword [ebp - 4], eax
cmp dword [edi + 0x3ddc], eax
je 0x417c91
call fcn.004180d0
mov eax, dword [edi + 0x3dd8]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x3de0]
mov edx, 4
mov dword [ebp - 0xc], ecx
mov ecx, edi
mov dword [edi + 0x3de0], eax
mov dword [edi + 0xa4], 0
call fcn.0041c460
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x47cc], ecx
je 0x417d91
nop word [eax + eax]
mov eax, dword [edi + 0x47d4]
mov edi, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
lea ebx, [eax + 0x64]
mov esi, ebx
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x417d05
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.00403940
mov dword [esi], 0
add esi, 0xc
sub edi, 1
jne 0x417ce6
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x30], edi
je 0x417d7b
push str.Background
xor edx, edx
call fcn.0041ae60
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x417d7b
cmp eax, 1
jne 0x417d46
mov ecx, dword [edi + 8]
cmp dword [ecx + 0x1c], 0
jne 0x417d46
cmp dword [ecx + 0x20], 0
je 0x417d7b
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
cmp ecx, esi
jne 0x417d73
inc ecx
test esi, esi
je 0x417d5f
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x417d64
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.00403940
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [eax + ecx*4], edi
inc dword [ebx]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [edi + 0x47cc]
jne 0x417cd0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x417d9e
call fcn.00418420
mov eax, dword [edi + 0x4944]
test eax, eax
je 0x417dc2
test dword [eax + 0xc], 0x2000
jne 0x417dc2
mov ebx, dword [eax + 0x308]
mov eax, dword [edi + 0x494c]
mov dword [ebp - 0x18], ebx
jmp 0x417dd5
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x417dd3
mov eax, dword [edi + 0x494c]
jmp 0x417dd5
xor eax, eax
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x3e10], esi
je 0x417e33
nop word [eax + eax]
mov eax, dword [edi + 0x3e18]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xaa], 0
je 0x417e2a
cmp byte [ecx + 0xb1], 0
jne 0x417e2a
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x417e2a
cmp ecx, ebx
je 0x417e2a
cmp ecx, dword [ebp - 8]
je 0x417e2a
shr edx, 0x19
and edx, 1
call fcn.00418c50
inc esi
cmp esi, dword [edi + 0x3e10]
jne 0x417df0
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x18]
test ecx, ecx
je 0x417e5d
cmp byte [ecx + 0xaa], 0
je 0x417e5d
cmp byte [ecx + 0xb1], 0
jne 0x417e5d
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.00418c50
inc esi
cmp esi, 2
jl 0x417e35
cmp byte [edi + 0x44], 0
je 0x417e9b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x417e9b
mov ecx, dword [edi + 0x4ab0]
cmp ecx, 0xffffffff
je 0x417e9b
push dword [edi + 0xdbc]
movss xmm0, dword [edi + 0x384c]
push dword [edi + 0xdb8]
sub esp, 8
call fcn.0041d430
add esp, 0x10
xor ecx, ecx
mov dword [edi + 0xa0], 0
mov dword [edi + 0x9c], 0
mov dword [ebp - 8], ecx
cmp dword [edi + 0x47cc], ecx
jle 0x41808d
mov eax, dword [edi + 0x47d4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [ebx + 0x64]
mov esi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x68]
add esi, ecx
mov dword [ebp - 0x14], ecx
cmp esi, eax
jle 0x417f03
test eax, eax
je 0x417eeb
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebx + 0x68]
jmp 0x417ef0
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
lea ecx, [ebx + 0x64]
push eax
call fcn.00403940
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x64], esi
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x417f4a
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
mov ecx, dword [ebx + 0x74]
add esp, 0xc
test ecx, ecx
jns 0x417f43
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x70]
call fcn.00403940
mov dword [ebx + 0x70], 0
cmp dword [ebx + 0x34], 0
je 0x417fbd
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.0041ae60
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x417fbd
cmp ecx, 1
jne 0x417f81
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x1c], 0
jne 0x417f81
cmp dword [ecx + 0x20], 0
je 0x417fbd
mov ecx, dword [ebx + 0x64]
mov esi, dword [ebx + 0x68]
cmp ecx, esi
jne 0x417fb1
inc ecx
test esi, esi
je 0x417f9b
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x417fa0
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x64]
call fcn.00403940
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 [0x461fe8]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x417fd2
mov eax, dword [ebx + 0x6c]
jmp 0x417fd4
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 + 0x40]
mov eax, dword [edx + 0x3c]
xor edx, edx
mov dword [ebx + 0x60], ecx
xor ecx, ecx
mov dword [ebx + 0x5c], eax
mov dword [ebp - 0xc], edx
cmp dword [ebx + 0x64], ecx
jle 0x418068
nop dword [eax + eax]
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x418050
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x41804d
cmp dword [eax + edx - 8], 0
jne 0x41804d
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x418032
mov edx, dword [ebp - 0xc]
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 - 0xc], edx
cmp edx, dword [ebx + 0x64]
jl 0x418020
mov edi, dword [ebp - 0x10]
add dword [edi + 0x9c], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x40]
inc ecx
add dword [edi + 0xa0], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [edi + 0x47cc]
jl 0x417ec0
xor esi, esi
cmp dword [edi + 0x5a98], esi
jle 0x4180c4
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5aa0]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x4180b8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a98]
jl 0x4180a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret