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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [0x100ae168]
push esi
push edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x11cc]
cmp eax, dword [ebp + 0x11c8]
je 0x10019164
call fcn.10018e30
mov eax, dword [ebp + 0x11c8]
cmp dword [ebp + 0x11d0], eax
je 0x100194fa
mov dword [ebp + 0x11d0], eax
mov dword [ebp + 0xa8], 0
mov eax, dword [ebp + 0x30ac]
mov esi, dword [ebp + 0x30b4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100191b7
nop dword [eax]
cmp dword [esi + 4], 4
jne 0x100191b0
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100191a0
call fcn.10018b40
mov edi, dword [ebp + 0x1cec]
mov eax, dword [ebp + 0x1ce4]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x1001926f
mov ebp, eax
mov ebx, dword [edi]
mov esi, dword [0x100ae168]
push 0
lea ecx, [ebx + 0x4c]
lea eax, [ebx + 0x7c]
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], eax
call fcn.100289c0
mov ecx, dword [ebx + 0x78]
push 0
call fcn.100289c0
mov byte [ebx + 0x3c], 1
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x70], ebx
cmp dword [ebx + 0x34], 0
je 0x10019260
push str.Background
xor edx, edx
mov ecx, ebx
call fcn.10017070
mov edx, dword [ebx + 0x74]
lea ecx, [ebx + 0x3c]
add esp, 4
push eax
call fcn.100336a0
add esp, 4
add edi, 4
cmp edi, ebp
jne 0x100191d5
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x1eb8]
test eax, eax
je 0x10019294
test dword [eax + 0xc], 0x2000
jne 0x10019294
mov edi, dword [eax + 0x30c]
mov ebx, dword [ebp + 0x1ec0]
mov dword [esp + 0x1c], edi
jmp 0x100192a8
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x100192a6
mov ebx, dword [ebp + 0x1ec0]
jmp 0x100192a8
xor ebx, ebx
mov esi, dword [ebp + 0x1208]
mov eax, dword [ebp + 0x1200]
mov dword [esp + 0x20], ebx
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x10019300
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x100192f9
cmp byte [ecx + 0xb5], 0
jne 0x100192f9
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x100192f9
cmp ecx, edi
je 0x100192f9
cmp ecx, ebx
je 0x100192f9
shr edx, 0x19
and edx, 1
call fcn.100186e0
mov eax, dword [esp + 0x14]
add esi, 4
cmp esi, eax
jne 0x100192c3
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x1001932a
cmp byte [ecx + 0xae], 0
je 0x1001932a
cmp byte [ecx + 0xb5], 0
jne 0x1001932a
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.100186e0
inc esi
cmp esi, 2
jl 0x10019302
cmp byte [ebp + 0x44], 0
je 0x10019360
mov ecx, dword [ebp + 0x203c]
cmp ecx, 0xffffffff
je 0x10019360
push dword [ebp + 0xc0]
movss xmm0, dword [ebp + 0xc3c]
push dword [ebp + 0xbc]
sub esp, 8
call fcn.100159b0
add esp, 0x10
mov dword [ebp + 0xa4], 0
mov dword [ebp + 0xa0], 0
mov ecx, dword [ebp + 0x1cec]
mov eax, dword [ebp + 0x1ce4]
mov dword [esp + 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x100194cd
mov ebx, dword [ecx]
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x74]
mov eax, dword [eax]
mov edi, dword [ecx]
add eax, edi
push eax
call fcn.100289c0
mov esi, dword [ebx + 0x78]
mov eax, dword [esi]
test eax, eax
je 0x10019430
shl eax, 2
push eax
mov eax, dword [ebx + 0x74]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edi*4]
push eax
call fcn.1004f070
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x1001942a
mov eax, ecx
xor edi, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg edi, eax
cmp edi, ecx
jle 0x1001942a
lea eax, [edi*4]
push eax
call fcn.100562cb
mov ebx, eax
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10019420
mov ecx, dword [esi]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.1004f070
add esp, 0xc
push dword [esi + 8]
call fcn.100515e6
add esp, 4
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 4], edi
mov dword [esi], 0
cmp dword [ebx + 0x38], 0
je 0x10019459
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10017070
mov edx, dword [ebx + 0x74]
lea ecx, [ebx + 0x3c]
add esp, 4
push eax
call fcn.100336a0
add esp, 4
mov edi, dword [ebx + 0x54]
mov eax, dword [ebx + 0x4c]
lea eax, [edi + eax*4]
mov dword [esp + 0x18], eax
cmp edi, eax
je 0x100194a6
mov ebp, eax
nop dword [eax]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
jle 0x1001949b
lea ecx, [eax + eax*4]
shl ecx, 3
nop
mov edx, dword [esi + 8]
cmp dword [ecx + edx - 0xc], 0
jne 0x1001949b
cmp dword [ecx + edx - 8], 0
jne 0x1001949b
dec eax
sub ecx, 0x28
mov dword [esi], eax
test eax, eax
jg 0x10019480
add edi, 4
cmp edi, ebp
jne 0x10019470
mov ebp, dword [esp + 0x10]
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x14]
add dword [ebp + 0xa0], eax
add ecx, 4
mov eax, dword [ebx + 0x44]
add dword [ebp + 0xa4], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x10019393
mov eax, dword [ebp + 0x30ac]
mov esi, dword [ebp + 0x30b4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100194fa
cmp dword [esi + 4], 5
jne 0x100194f3
mov eax, dword [esi + 0xc]
push esi
push ebp
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100194e3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret