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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [0x100a93dc]
push esi
push edi
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 0x3de4]
cmp eax, dword [ebp + 0x3de0]
je 0x1001927a
call fcn.10018ee0
mov eax, dword [ebp + 0x3de0]
cmp dword [ebp + 0x3de8], eax
je 0x1001969a
mov dword [ebp + 0x3de8], eax
mov dword [ebp + 0xa8], 0
mov eax, dword [ebp + 0x5ab0]
mov esi, dword [ebp + 0x5ab8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100192c9
cmp dword [esi + 4], 4
jne 0x100192c2
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100192b2
call fcn.10018c30
mov ebx, dword [ebp + 0x47ec]
mov eax, dword [ebp + 0x47e4]
lea eax, [ebx + eax*4]
mov dword [esp + 0x1c], eax
cmp ebx, eax
je 0x100193d1
nop dword [eax]
mov esi, dword [ebx]
mov eax, dword [0x100a93dc]
lea ebp, [esi + 0x48]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], eax
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x10019326
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, ebp
call fcn.10028f70
mov dword [ebp], 0
mov ebp, dword [esi + 0x74]
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x1001934f
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, ebp
call fcn.10028f70
mov dword [ebp], 0
mov byte [esi + 0x38], 1
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x5c], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], esi
cmp dword [esi + 0x30], 0
je 0x100193c0
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10016ce0
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x38]
add esp, 4
push eax
call fcn.10034470
add esp, 4
add ebx, 4
cmp ebx, dword [esp + 0x1c]
jne 0x100192f0
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x495c]
test eax, eax
je 0x100193f6
test dword [eax + 0xc], 0x2000
jne 0x100193f6
mov edi, dword [eax + 0x300]
mov ebx, dword [ebp + 0x4964]
mov dword [esp + 0x20], edi
jmp 0x1001940a
xor edi, edi
mov dword [esp + 0x20], edi
test eax, eax
je 0x10019408
mov ebx, dword [ebp + 0x4964]
jmp 0x1001940a
xor ebx, ebx
mov esi, dword [ebp + 0x3e20]
mov eax, dword [ebp + 0x3e18]
mov dword [esp + 0x24], ebx
lea ebp, [esi + eax*4]
cmp esi, ebp
je 0x1001945a
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x10019453
cmp byte [ecx + 0xb1], 0
jne 0x10019453
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10019453
cmp ecx, edi
je 0x10019453
cmp ecx, ebx
je 0x10019453
shr edx, 0x19
and edx, 1
call fcn.100188c0
add esi, 4
cmp esi, ebp
jne 0x10019421
xor esi, esi
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x20]
test ecx, ecx
je 0x10019488
cmp byte [ecx + 0xaa], 0
je 0x10019488
cmp byte [ecx + 0xb1], 0
jne 0x10019488
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.100188c0
inc esi
cmp esi, 2
jl 0x10019460
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0x44], 0
je 0x100194c2
mov ecx, dword [ebx + 0x4ac8]
cmp ecx, 0xffffffff
je 0x100194c2
push dword [ebx + 0xdc0]
movss xmm0, dword [ebx + 0x3854]
push dword [ebx + 0xdbc]
sub esp, 8
call fcn.100154c0
add esp, 0x10
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov ecx, dword [ebx + 0x47ec]
mov eax, dword [ebx + 0x47e4]
mov dword [esp + 0x18], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x20], eax
cmp ecx, eax
je 0x1001966d
mov ebp, dword [ecx]
mov ebx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebx]
mov esi, dword [eax]
mov edi, dword [ebx + 4]
add esi, ecx
mov dword [esp + 0x1c], ecx
cmp esi, edi
jle 0x10019537
test edi, edi
je 0x1001951f
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10019524
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.10028f70
mov ecx, dword [esp + 0x1c]
mov dword [ebx], esi
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x10019580
shl eax, 2
push eax
mov eax, dword [ebp + 0x70]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + ecx*4]
push eax
call fcn.1004cf20
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1001957a
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.10028f70
mov dword [esi], 0
cmp dword [ebp + 0x34], 0
je 0x100195fd
push str.Foreground
mov edx, 1
mov ecx, ebp
call fcn.10016ce0
mov esi, dword [ebp + 0x70]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x100195fd
cmp eax, 1
jne 0x100195b9
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x100195b9
cmp dword [eax + 0x20], 0
je 0x100195fd
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x100195e4
inc ebx
test ecx, ecx
je 0x100195d2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100195d7
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.10028f70
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebp + 0x3c]
mov eax, dword [edi + 0x18]
add dword [ebp + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [ebp + 0x40], eax
mov edi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x48]
lea ebx, [edi + eax*4]
cmp edi, ebx
je 0x10019642
nop word [eax + eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x1001963b
lea eax, [ecx + ecx*4]
shl eax, 3
nop
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x1001963b
cmp dword [eax + edx - 8], 0
jne 0x1001963b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10019620
add edi, 4
cmp edi, ebx
jne 0x10019610
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x18]
add ecx, 4
add dword [ebx + 0xa0], eax
mov eax, dword [ebp + 0x40]
add dword [ebx + 0xa4], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x20]
jne 0x100194f5
mov eax, dword [ebx + 0x5ab0]
mov esi, dword [ebx + 0x5ab8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1001969a
cmp dword [esi + 4], 5
jne 0x10019693
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10019683
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret