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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10449004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x10449d50]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x3dec]
cmp eax, dword [edi + 0x3de8]
je 0x1003f48f
call fcn.10035340
mov eax, dword [edi + 0x3df0]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x3de8]
push 4
push edi
mov dword [ebp - 8], eax
mov dword [edi + 0x3df0], eax
mov dword [edi + 0xa8], 0
call fcn.10033590
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x47bc], ecx
je 0x1003f591
nop dword [eax]
mov eax, dword [edi + 0x47c4]
mov ebx, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
lea esi, [eax + 0x64]
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1003f503
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.10047650
mov dword [esi], 0
add esi, 0xc
sub ebx, 1
jne 0x1003f4e4
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x30], ebx
je 0x1003f57e
push str.Background
push ebx
push esi
call fcn.10037510
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1003f57e
cmp ecx, 1
jne 0x1003f543
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x1003f543
cmp dword [eax + 0x20], ebx
je 0x1003f57e
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x1003f571
inc esi
test ecx, ecx
je 0x1003f55f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1003f564
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.10047650
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 - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [edi + 0x47bc]
jne 0x1003f4d0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x1003f59e
call fcn.1003fad0
mov eax, dword [edi + 0x4920]
test eax, eax
je 0x1003f5c2
test dword [eax + 0x14], 0x2000
jne 0x1003f5c2
mov ebx, dword [eax + 0x30c]
mov edx, dword [edi + 0x4928]
mov dword [ebp - 0x18], ebx
jmp 0x1003f5d5
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x1003f5d3
mov edx, dword [edi + 0x4928]
jmp 0x1003f5d5
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x3e00], esi
je 0x1003f63a
nop word [eax + eax]
mov eax, dword [edi + 0x3e08]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0xb2], 0
je 0x1003f631
cmp byte [eax + 0xb9], 0
jne 0x1003f631
mov ecx, dword [eax + 0x14]
test ecx, 0x1000000
jne 0x1003f631
cmp eax, ebx
je 0x1003f631
cmp eax, edx
je 0x1003f631
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.1002f4d0
mov edx, dword [ebp - 0xc]
add esp, 8
inc esi
cmp esi, dword [edi + 0x3e00]
jne 0x1003f5f0
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x18]
test ecx, ecx
je 0x1003f66d
cmp byte [ecx + 0xb2], 0
je 0x1003f66d
cmp byte [ecx + 0xb9], 0
jne 0x1003f66d
mov eax, dword [ecx + 0x14]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.1002f4d0
add esp, 8
inc esi
cmp esi, 2
jl 0x1003f640
cmp byte [edi + 0x60], 0
je 0x1003f6bb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x1003f6bb
mov eax, dword [edi + 0x494c]
cmp eax, 0xffffffff
je 0x1003f6bb
movss xmm0, dword [edi + 0x3850]
push 0x30000000
push 0xff000000
push 0xffffffffffffffff
push eax
push ecx
movss dword [esp], xmm0
push dword [edi + 0xdbc]
push dword [edi + 0xdb8]
call fcn.1003ffc0
add esp, 0x1c
xor ecx, ecx
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x47bc], ecx
jle 0x1003f88d
mov eax, dword [edi + 0x47c4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x68]
add edx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
cmp edx, eax
jle 0x1003f72c
test eax, eax
je 0x1003f711
cdq
sub eax, edx
mov edx, dword [ebp - 8]
mov ecx, eax
sar ecx, 1
add ecx, dword [ebx + 0x68]
jmp 0x1003f716
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [ebx + 0x64]
push eax
call fcn.10047650
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x64], edx
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x1003f773
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 0x1003f76c
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.10047650
mov dword [ebx + 0x70], 0
cmp dword [ebx + 0x34], 0
je 0x1003f7e2
push str.Foreground
push 1
push ebx
call fcn.10037510
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1003f7e2
cmp ecx, 1
jne 0x1003f7a6
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x1003f7a6
cmp dword [eax + 0x20], 0
je 0x1003f7e2
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp esi, ecx
jne 0x1003f7d3
inc esi
test ecx, ecx
je 0x1003f7c0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1003f7c5
mov eax, 8
cmp eax, esi
lea ecx, [ebx + 0x64]
cmovg esi, eax
push esi
call fcn.10047650
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 [0x10449d50]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x1003f7f7
mov eax, dword [ebx + 0x6c]
jmp 0x1003f7f9
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 - 8], ecx
cmp dword [ebx + 0x64], ecx
jle 0x1003f868
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.10051e70
mov edx, dword [esi + 0x18]
add edx, dword [ebx + 0x44]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x44], edx
inc ecx
mov eax, dword [esi + 0xc]
add dword [ebx + 0x40], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 0x64]
jl 0x1003f840
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
add dword [edi + 0xa0], edx
mov eax, dword [ebx + 0x40]
add dword [edi + 0xa4], eax
cmp ecx, dword [edi + 0x47bc]
jl 0x1003f6e0
xor esi, esi
cmp dword [edi + 0x5a44], esi
jle 0x1003f8c4
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5a4c]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x1003f8b8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a44]
jl 0x1003f8a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ab082
mov esp, ebp
pop ebp
ret