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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x100d24e0]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x3f34]
cmp eax, dword [ebx + 0x3f30]
je 0x10014b6f
call fcn.100147d0
mov eax, dword [ebx + 0x3f30]
cmp dword [ebx + 0x3f38], eax
je 0x10014ffc
mov dword [ebx + 0x3f38], eax
mov dword [ebx + 0xa8], 0
mov eax, dword [ebx + 0x5e50]
mov esi, dword [ebx + 0x5e58]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10014bbe
cmp dword [esi + 4], 4
jne 0x10014bb7
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10014ba7
call fcn.10014390
mov ecx, dword [ebx + 0x4a84]
mov eax, dword [ebx + 0x4a7c]
mov dword [ebp - 0xc], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], eax
cmp ecx, eax
je 0x10014d1d
mov esi, dword [ecx]
mov ebx, dword [0x100d24e0]
lea edi, [esi + 0x50]
lea eax, [esi + 0x80]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10014c16
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, edi
call fcn.10026ee0
mov dword [edi], 0
mov edi, dword [esi + 0x7c]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10014c3e
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, edi
call fcn.10026ee0
mov dword [edi], 0
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], esi
cmp dword [esi + 0x38], 0
je 0x10014d08
push str.Background
xor edx, edx
mov ecx, esi
call fcn.10012420
mov edi, dword [esi + 0x78]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x10014d08
cmp eax, 1
jne 0x10014cbe
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x10014cbe
cmp dword [eax + 0x20], 0
je 0x10014d08
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x10014cef
inc edx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x10014cdd
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, ecx
jmp 0x10014ce2
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.10026ee0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
inc dword [esi + 0x44]
mov eax, dword [ebx + 0x18]
add dword [esi + 0x4c], eax
mov eax, dword [ebx + 0xc]
add dword [esi + 0x48], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x10]
jne 0x10014be0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x4c54]
test eax, eax
je 0x10014d41
test dword [eax + 0xc], 0x2000
jne 0x10014d41
mov edi, dword [eax + 0x314]
mov ebx, dword [ebx + 0x4c5c]
mov dword [ebp - 0x20], edi
jmp 0x10014d54
xor edi, edi
mov dword [ebp - 0x20], edi
test eax, eax
je 0x10014d52
mov ebx, dword [ebx + 0x4c5c]
jmp 0x10014d54
xor ebx, ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
mov esi, dword [eax + 0x3f80]
mov eax, dword [eax + 0x3f78]
lea eax, [esi + eax*4]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x10014dac
mov ecx, dword [esi]
cmp byte [ecx + 0xba], 0
je 0x10014da5
cmp byte [ecx + 0xc2], 0
jne 0x10014da5
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x10014da5
cmp ecx, edi
je 0x10014da5
cmp ecx, ebx
je 0x10014da5
shr edx, 0x19
and edx, 1
call fcn.10013f90
mov eax, dword [ebp - 0x10]
add esi, 4
cmp esi, eax
jne 0x10014d70
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0x20]
test ecx, ecx
je 0x10014dd8
cmp byte [ecx + 0xba], 0
je 0x10014dd8
cmp byte [ecx + 0xc2], 0
jne 0x10014dd8
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.10013f90
inc esi
cmp esi, 2
jl 0x10014db0
mov edx, dword [ebp - 8]
cmp byte [edx + 0x44], 0
je 0x10014e14
mov ecx, dword [edx + 0x4dd8]
cmp ecx, 0xffffffff
je 0x10014e14
push dword [edx + 0xc0]
movss xmm0, dword [edx + 0x3984]
push dword [edx + 0xbc]
sub esp, 8
call fcn.10010ac0
mov edx, dword [ebp - 8]
add esp, 0x10
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa0], 0
mov ecx, dword [edx + 0x4a84]
mov eax, dword [edx + 0x4a7c]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x1c], eax
cmp ecx, eax
je 0x10014fcc
mov ebx, dword [ecx]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ecx]
mov esi, dword [eax]
mov edi, dword [ecx + 4]
add esi, edx
mov dword [ebp - 0x10], edx
cmp esi, edi
jle 0x10014e8f
test edi, edi
je 0x10014e74
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10014e79
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.10026ee0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], esi
mov esi, dword [ebx + 0x7c]
mov eax, dword [esi]
test eax, eax
je 0x10014ed8
shl eax, 2
push eax
mov eax, dword [ebx + 0x78]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x10014ed2
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.10026ee0
mov dword [esi], 0
cmp dword [ebx + 0x3c], 0
je 0x10014f5c
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.10012420
mov esi, dword [ebx + 0x78]
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x10014f5c
cmp eax, 1
jne 0x10014f15
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10014f15
cmp dword [eax + 0x20], 0
je 0x10014f5c
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
cmp ebx, ecx
jne 0x10014f40
inc ebx
test ecx, ecx
je 0x10014f2e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10014f33
mov eax, 8
cmp eax, ebx
mov ecx, esi
cmovg ebx, eax
push ebx
call fcn.10026ee0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov ebx, dword [ebp - 0x18]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [ebx + 0x44]
mov eax, dword [edi + 0x18]
add dword [ebx + 0x4c], eax
mov eax, dword [edi + 0xc]
add dword [ebx + 0x48], eax
mov edi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x50]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x10014fa5
nop dword [eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
jle 0x10014f9e
lea eax, [ecx + ecx*4]
shl eax, 3
nop
mov edx, dword [esi + 8]
cmp dword [edx + eax - 0xc], 0
jne 0x10014f9b
cmp dword [edx + eax - 8], 0
jne 0x10014f9b
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x10014f80
mov eax, dword [ebp - 0x18]
add edi, 4
cmp edi, eax
jne 0x10014f70
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebp - 0x14]
add ecx, 4
add dword [edx + 0xa0], eax
mov eax, dword [ebx + 0x48]
add dword [edx + 0xa4], eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x1c]
jne 0x10014e45
mov eax, dword [edx + 0x5e50]
mov esi, dword [edx + 0x5e58]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10014ffc
cmp dword [esi + 4], 5
jne 0x10014ff5
mov eax, dword [esi + 0xc]
push esi
push edx
call eax
mov edx, dword [ebp - 8]
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10014fe2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a95f7
mov esp, ebp
pop ebp
ret