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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ecx, 0x102b78aa
call fcn.10124b2c
mov edi, dword [0x101e88b0]
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x3de4]
cmp eax, dword [edi + 0x3de0]
je 0x1001d83f
call fcn.10012830
mov eax, dword [edi + 0x3de8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x3de0]
push 4
push edi
mov dword [ebp - 0xc], eax
mov dword [edi + 0x3de8], eax
mov dword [edi + 0xac], 0
call fcn.10010ac0
xor ecx, ecx
add esp, 8
mov dword [ebp - 4], ecx
cmp dword [edi + 0x47b4], ecx
je 0x1001d941
nop dword [eax]
mov eax, dword [edi + 0x47bc]
mov ebx, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
lea esi, [eax + 0x64]
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001d8b3
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.10025ab0
mov dword [esi], 0
add esi, 0xc
sub ebx, 1
jne 0x1001d894
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x30], ebx
je 0x1001d92e
push str.Background
push ebx
push esi
call fcn.10014b80
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1001d92e
cmp ecx, 1
jne 0x1001d8f3
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x1001d8f3
cmp dword [eax + 0x20], ebx
je 0x1001d92e
mov ecx, dword [esi + 0x68]
lea ebx, [esi + 0x64]
mov esi, dword [ebx]
cmp esi, ecx
jne 0x1001d921
inc esi
test ecx, ecx
je 0x1001d90f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001d914
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.10025ab0
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [edi + 0x47b4]
jne 0x1001d880
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x1001d94e
call fcn.1001de60
mov eax, dword [edi + 0x4914]
test eax, eax
je 0x1001d972
test dword [eax + 0xc], 0x2000
jne 0x1001d972
mov ebx, dword [eax + 0x300]
mov edx, dword [edi + 0x491c]
mov dword [ebp - 0x14], ebx
jmp 0x1001d985
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x1001d983
mov edx, dword [edi + 0x491c]
jmp 0x1001d985
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x3df8], esi
je 0x1001d9ea
nop word [eax + eax]
mov eax, dword [edi + 0x3e00]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0xaa], 0
je 0x1001d9e1
cmp byte [eax + 0xb1], 0
jne 0x1001d9e1
mov ecx, dword [eax + 0xc]
test ecx, 0x1000000
jne 0x1001d9e1
cmp eax, ebx
je 0x1001d9e1
cmp eax, edx
je 0x1001d9e1
shr ecx, 0x19
and ecx, 1
push ecx
push eax
call fcn.1000ca70
mov edx, dword [ebp - 4]
add esp, 8
inc esi
cmp esi, dword [edi + 0x3df8]
jne 0x1001d9a0
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x14]
test ecx, ecx
je 0x1001da1d
cmp byte [ecx + 0xaa], 0
je 0x1001da1d
cmp byte [ecx + 0xb1], 0
jne 0x1001da1d
mov eax, dword [ecx + 0xc]
shr eax, 0x19
and eax, 1
push eax
push ecx
call fcn.1000ca70
add esp, 8
inc esi
cmp esi, 2
jl 0x1001d9f0
cmp byte [edi + 0x60], 0
je 0x1001da6b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x1001da6b
mov eax, dword [edi + 0x4940]
cmp eax, 0xffffffff
je 0x1001da6b
movss xmm0, dword [edi + 0x386c]
push 0x30000000
push 0xff000000
push 0xffffffffffffffff
push eax
push ecx
movss dword [esp], xmm0
push dword [edi + 0xdc4]
push dword [edi + 0xdc0]
call fcn.1001e3f0
add esp, 0x1c
xor ecx, ecx
mov dword [edi + 0xa8], 0
mov dword [edi + 0xa4], 0
mov dword [ebp - 8], ecx
cmp dword [edi + 0x47b4], ecx
jle 0x1001dc3d
mov eax, dword [edi + 0x47bc]
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 - 0x10], ecx
mov dword [ebp - 0xc], edx
cmp edx, eax
jle 0x1001dadc
test eax, eax
je 0x1001dac1
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, eax
sar ecx, 1
add ecx, dword [ebx + 0x68]
jmp 0x1001dac6
mov ecx, 8
cmp ecx, edx
mov eax, edx
cmovg eax, ecx
lea ecx, [ebx + 0x64]
push eax
call fcn.10025ab0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x64], edx
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x1001db23
shl eax, 2
push eax
mov eax, dword [ebx + 0x6c]
push dword [ebx + 0x78]
lea eax, [eax + ecx*4]
push eax
call fcn.101294d0
mov ecx, dword [ebx + 0x74]
add esp, 0xc
test ecx, ecx
jns 0x1001db1c
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.10025ab0
mov dword [ebx + 0x70], 0
cmp dword [ebx + 0x34], 0
je 0x1001db92
push str.Foreground
push 1
push ebx
call fcn.10014b80
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1001db92
cmp ecx, 1
jne 0x1001db56
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x1001db56
cmp dword [eax + 0x20], 0
je 0x1001db92
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp esi, ecx
jne 0x1001db83
inc esi
test ecx, ecx
je 0x1001db70
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001db75
mov eax, 8
cmp eax, esi
lea ecx, [ebx + 0x64]
cmovg esi, eax
push esi
call fcn.10025ab0
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [ebx + 0x64]
mov edx, dword [0x101e88b0]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x1001dba7
mov eax, dword [ebx + 0x6c]
jmp 0x1001dba9
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 - 0xc], ecx
cmp dword [ebx + 0x64], ecx
jle 0x1001dc18
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.1002e0c0
mov edx, dword [esi + 0x18]
add edx, dword [ebx + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x44], edx
inc ecx
mov eax, dword [esi + 0xc]
add dword [ebx + 0x40], eax
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebx + 0x64]
jl 0x1001dbf0
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
add dword [edi + 0xa4], edx
mov eax, dword [ebx + 0x40]
add dword [edi + 0xa8], eax
cmp ecx, dword [edi + 0x47b4]
jl 0x1001da90
xor esi, esi
cmp dword [edi + 0x5a58], esi
jle 0x1001dc74
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5a60]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x1001dc68
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 0x1001dc50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret