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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [0x100ad250]
push esi
push edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x3de4]
cmp eax, dword [ebp + 0x3de0]
je 0x100188d4
call fcn.10018520
mov eax, dword [ebp + 0x3de0]
cmp dword [ebp + 0x3de8], eax
je 0x10018cfc
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 0x10018927
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x10018920
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10018910
call fcn.10018270
mov ebx, dword [ebp + 0x47ec]
mov eax, dword [ebp + 0x47e4]
lea eax, [ebx + eax*4]
mov dword [esp + 0x18], eax
cmp ebx, eax
je 0x10018a31
nop word [eax + eax]
mov esi, dword [ebx]
mov eax, dword [0x100ad250]
lea ebp, [esi + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], eax
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x10018986
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.100284b0
mov dword [ebp], 0
mov ebp, dword [esi + 0x74]
mov ecx, dword [ebp + 4]
test ecx, ecx
jns 0x100189af
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.100284b0
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 + 0x14]
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 0x10018a20
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10016370
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x38]
add esp, 4
push eax
call fcn.100341f0
add esp, 4
add ebx, 4
cmp ebx, dword [esp + 0x18]
jne 0x10018950
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x495c]
test eax, eax
je 0x10018a56
test dword [eax + 0xc], 0x2000
jne 0x10018a56
mov edi, dword [eax + 0x300]
mov ebx, dword [ebp + 0x4964]
mov dword [esp + 0x1c], edi
jmp 0x10018a6a
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x10018a68
mov ebx, dword [ebp + 0x4964]
jmp 0x10018a6a
xor ebx, ebx
mov esi, dword [ebp + 0x3e20]
mov eax, dword [ebp + 0x3e18]
mov dword [esp + 0x20], ebx
lea eax, [esi + eax*4]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x10018ac2
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x10018abb
cmp byte [ecx + 0xb1], 0
jne 0x10018abb
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10018abb
cmp ecx, edi
je 0x10018abb
cmp ecx, ebx
je 0x10018abb
shr edx, 0x19
and edx, 1
call fcn.10017f00
mov eax, dword [esp + 0x18]
add esi, 4
cmp esi, eax
jne 0x10018a85
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x10018aec
cmp byte [ecx + 0xaa], 0
je 0x10018aec
cmp byte [ecx + 0xb1], 0
jne 0x10018aec
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10017f00
inc esi
cmp esi, 2
jl 0x10018ac4
cmp byte [ebp + 0x44], 0
je 0x10018b22
mov ecx, dword [ebp + 0x4ac8]
cmp ecx, 0xffffffff
je 0x10018b22
push dword [ebp + 0xdc0]
movss xmm0, dword [ebp + 0x3854]
push dword [ebp + 0xdbc]
sub esp, 8
call fcn.10014b90
add esp, 0x10
mov dword [ebp + 0xa4], 0
mov dword [ebp + 0xa0], 0
mov ecx, dword [ebp + 0x47ec]
mov eax, dword [ebp + 0x47e4]
mov dword [esp + 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x10018ccf
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 + 0x18], ecx
cmp esi, edi
jle 0x10018b97
test edi, edi
je 0x10018b7f
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10018b84
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, ebx
push eax
call fcn.100284b0
mov ecx, dword [esp + 0x18]
mov dword [ebx], esi
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
test eax, eax
je 0x10018be0
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.1004d2f0
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x10018bda
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.100284b0
mov dword [esi], 0
cmp dword [ebp + 0x34], 0
je 0x10018c5d
push str.Foreground
mov edx, 1
mov ecx, ebp
call fcn.10016370
mov esi, dword [ebp + 0x70]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x10018c5d
cmp eax, 1
jne 0x10018c19
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10018c19
cmp dword [eax + 0x20], 0
je 0x10018c5d
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x10018c44
inc ebx
test ecx, ecx
je 0x10018c32
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10018c37
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.100284b0
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 0x10018ca2
nop word [eax + eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x10018c9b
lea eax, [ecx + ecx*4]
shl eax, 3
nop
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x10018c9b
cmp dword [eax + edx - 8], 0
jne 0x10018c9b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10018c80
add edi, 4
cmp edi, ebx
jne 0x10018c70
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x44]
add dword [ecx + 0xa0], eax
mov eax, dword [ebp + 0x40]
mov ebp, ecx
mov ecx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x14], ecx
add dword [ebp + 0xa4], eax
cmp ecx, dword [esp + 0x1c]
jne 0x10018b55
mov eax, dword [ebp + 0x5ab0]
mov esi, dword [ebp + 0x5ab8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10018cfc
cmp dword [esi + 4], 5
jne 0x10018cf5
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10018ce5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret