Function at 0x1006aef0
Capabilities:
Check for time delay via queryperformancecounter
Check if file exists
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x770
mov eax, dword [0x102d4a48]
xor eax, esp
mov dword [esp + 0x76c], eax
mov eax, dword [esp + 0x77c]
push ebx
push ebp
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x788]
mov ebp, ecx
push esi
mov dword [esp + 0xc], eax
mov eax, dword [0x103f7cf8]
push edi
mov edi, dword [esp + 0x784]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
cmp eax, dword [0x102d91d8]
je 0x1006af59
call fcn.1005b0d0
mov ecx, dword [0x103f7cf8]
mov esi, eax
mov dword [0x103faf80], esi
mov dword [0x102d91d8], ecx
jmp 0x1006af5f
mov esi, dword [0x103faf80]
mov byte [esp + 0x58], 0
mov byte [esp + 0x178], 0
cmp dword [esi + 8], 0
mov dword [esp + 0x14], 0
mov dword [0x103f7c7c], 0
jne 0x1006b0cc
cmp dword [0x103f7cdc], 0
jne 0x1006afd2
test edi, edi
je 0x1006afd2
push 0x5f
push edi
call fcn.1008c640
add esp, 8
test eax, eax
je 0x1006afd2
inc eax
push eax
call fcn.10092459
add esp, 4
cmp eax, 0xe
jle 0x1006afd2
movzx ecx, word [0xcc15d0]
mov eax, str.JLPQRSTUiuvx
nop
cmp dword [eax], ecx
je 0x1006b6e2
add eax, 4
cmp eax, 0x102b06cc
jle 0x1006afc0
test byte [0x103f7ce4], 0x10
je 0x1006b0cc
mov eax, 0x2710
cmp word [0xdc0996], ax
jne 0x1006b0cc
mov ecx, edi
mov eax, str.field_hyoumap_hyoumap_26
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b018
test dl, dl
je 0x1006b014
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b018
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006aff8
xor eax, eax
jmp 0x1006b01d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1006b02d
movzx eax, byte [0xdc0bae]
push eax
push 0x1a
jmp 0x1006b067
mov ecx, edi
mov eax, str.field_hyoumap_hyoumap_27
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b054
test dl, dl
je 0x1006b050
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b054
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b034
xor eax, eax
jmp 0x1006b059
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1006b086
movzx eax, byte [0xdc0bae]
push eax
push 0x1b
push 0x104072c0
push str._sThe_Reunion_BASE_ChocoGraph__i__02i.png
lea eax, [esp + 0x188]
push 0x600
push eax
call fcn.10059d90
add esp, 0x18
lea eax, [esp + 0x178]
push eax
push str.imagenameCHOCO:__s_n
push dword [0x104072bc]
push 0
push str.INFO
call fcn.10067cf0
add esp, 0x14
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [0x103f7c7c]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [0x103f7c7c], ecx
cmp dword [esp + 0x794], 0
je 0x1006b102
lea eax, [esp + 0x40]
mov edx, ebx
push eax
push 0
mov ecx, ebp
call fcn.10058c40
push dword [esp + 0x4c]
lea eax, [esp + 0x64]
push dword [esp + 0x4c]
push str.__llx
push 0x20
push eax
call fcn.10059d90
add esp, 0x1c
cmp dword [esi + 8], 1
jne 0x1006b21f
mov ecx, edi
mov eax, str.SEFFECT1
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b133
test dl, dl
je 0x1006b12f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b133
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b113
xor eax, eax
jmp 0x1006b138
sbb eax, eax
or eax, 1
test eax, eax
mov esi, str.battle_seffect1
mov eax, str.SEFFECT2
cmovne esi, edi
mov ecx, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b170
test dl, dl
je 0x1006b16c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b170
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b150
xor eax, eax
jmp 0x1006b175
sbb eax, eax
or eax, 1
test eax, eax
mov edi, str.battle_seffect2
mov eax, str.SEFFECT3
cmovne edi, esi
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b1a6
test dl, dl
je 0x1006b1a2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b1a6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b186
xor eax, eax
jmp 0x1006b1ab
sbb eax, eax
or eax, 1
test eax, eax
mov esi, str.battle_seffect3
mov eax, str.RAIN7
cmovne esi, edi
mov ecx, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b1e0
test dl, dl
je 0x1006b1dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b1e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b1c0
xor eax, eax
jmp 0x1006b1e5
sbb eax, eax
or eax, 1
test eax, eax
mov edi, str.battle_rain7
push str.FF7_DATA_BATTLE
cmovne edi, esi
push edi
call fcn.1008bb80
add esp, 8
test eax, eax
je 0x1006b21f
push 0x102b4608
mov edx, str._FF7_DATA_BATTLE_
mov ecx, edi
call fcn.1006adf0
add esp, 4
mov dword [esp + 0x14], 1
mov edi, eax
cmp dword [0x103f7c7c], 0
mov ebx, dword [esp + 0x788]
jne 0x1006b2d0
xor ebp, ebp
mov eax, ebp
sub eax, 0
je 0x1006b248
sub eax, 1
jne 0x1006b25c
push 0x102b4624
jmp 0x1006b24d
push 0x102b4620
lea eax, [esp + 0x54]
push 5
push eax
call fcn.10059d90
add esp, 0xc
xor esi, esi
nop
test esi, esi
jne 0x1006b31f
cmp dword [0x103f7ca8], esi
je 0x1006b2b7
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
push edi
push dword [0x10407ad4]
lea eax, [esp + 0x18c]
push 0x104072c0
push str._sThe_Reunion_CUSTOM__s_Texture__s__02i_s._s
push 0x600
push eax
call fcn.10059d90
add esp, 0x24
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1006b3a0
inc esi
cmp esi, 2
jle 0x1006b260
cmp dword [0x103f7c7c], 1
je 0x1006b2dd
inc ebp
cmp ebp, 1
jle 0x1006b235
cmp dword [0x103f7c7c], 1
jne 0x1006b5cb
cmp dword [0x103f7cbc], 0
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
je 0x1006b2f3
lea eax, [esp + 0x38]
push eax
call ebp
push dword [esp + 0x10]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x17c]
mov edx, esi
call fcn.1006a360
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006b3af
xor esi, esi
jmp 0x1006b477
cmp esi, 1
jne 0x1006b35d
cmp dword [0x103f7ce4], 0
je 0x1006b2b7
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
push edi
push 0x104072c0
push str._sThe_Reunion_BASE_New_Translation_Texture__s__02i_s._s
lea eax, [esp + 0x190]
push 0x600
push eax
call fcn.10059d90
add esp, 0x20
jmp 0x1006b2a1
cmp esi, 2
jne 0x1006b36f
cmp dword [0x103f7ca4], 0
je 0x1006b2b7
mov eax, esi
sub eax, 0
je 0x1006b270
sub eax, 1
je 0x1006b32d
sub eax, 1
jne 0x1006b2a1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
push edi
push 0x104072c0
push str._sThe_Reunion_GLOBAL_Texture__s__02i_s._s
jmp 0x1006b343
mov dword [0x103f7c7c], 1
jmp 0x1006b2dd
mov ebp, dword [esi]
mov ecx, dword [0x10405bc8]
cmp ebp, ecx
ja 0x1006b3c9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
cmp eax, ecx
jbe 0x1006b401
lea eax, [esp + 0x178]
push eax
xor eax, eax
cmp dword [0x103f7c80], eax
push str.texture_dimensions_exceed_max_texture_size__will_not_be_able_to_load__s_n
push dword [0x104072a8]
setne al
push eax
push str.ERROR
call fcn.10067cf0
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ebp, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 1
call dword [sym.imp.OPENGL32.dll_glGenTextures]
push dword [esp + 0x24]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
mov esi, dword [esp + 0x24]
push 0
push 0x813d
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexParameteri]
push dword [esp + 0x18]
push 0x1401
push 0x80e1
push 0
push dword [esp + 0x38]
push ebp
push 0x8058
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
push 0xde1
call dword [0x103fae2c]
push dword [esp + 0x18]
call fcn.10092afa
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esp, 4
mov eax, dword [0x103f7cbc]
test eax, eax
je 0x1006b4f2
lea eax, [esp + 0x48]
push eax
call ebp
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
call fcn.10231160
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
movsd qword [esp + 0x18], xmm0
call fcn.10231160
movsd xmm1, qword [esp + 0x18]
mov edx, dword [0x104063e4]
subsd xmm1, xmm0
mov ecx, dword [0x104063e0]
movsd qword [esp + 0x18], xmm1
call fcn.10231160
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
mov eax, dword [0x103f7cbc]
movaps xmm0, xmm1
movsd qword [esp + 0x18], xmm1
addsd xmm0, qword [0x103f7d50]
movsd qword [0x103f7d50], xmm0
jmp 0x1006b4fe
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x18], xmm0
test esi, esi
je 0x1006b5cb
test eax, eax
je 0x1006b590
cmp dword [esp + 0x794], 0
lea eax, [esp + 0x178]
push eax
je 0x1006b527
push str.PERSONAL_TEXTURE__animated_____s_n
jmp 0x1006b52c
push str.PERSONAL_TEXTURE____s_n
push dword [0x104072b0]
push 0
push str.TRACE
call fcn.10067cf0
movsd xmm1, qword [esp + 0x2c]
add esp, 0x14
sub esp, 8
movsd qword [esp], xmm1
push str.Image_load_time:__f_n
push dword [0x104072bc]
push 0
push str.INFO
call fcn.10067cf0
movsd xmm0, qword [0x103f7d50]
add esp, 0x10
movsd qword [esp], xmm0
push str.Image_load_time__total_:__f_n
push dword [0x104072bc]
push 0
push str.INFO
call fcn.10067cf0
add esp, 0x18
cmp dword [0x103f7cc0], 0
je 0x1006b5b4
push esi
push str.Created_texture:__i_n
push dword [0x104072b0]
push 0
push str.TRACE
call fcn.10067cf0
add esp, 0x14
cmp dword [esp + 0x14], 1
jne 0x1006b5c4
push edi
call fcn.10092afa
add esp, 4
mov eax, esi
jmp 0x1006b6e4
mov ebp, dword [esp + 0x794]
test ebp, ebp
je 0x1006b62c
cmp dword [0x103f7c6c], 0
je 0x1006b600
lea eax, [esp + 0x58]
push eax
push ebx
push edi
push str.Missing_animated_texture____s__02i_s.png_n
push dword [0x104072bc]
push 0
push str.INFO
call fcn.10067cf0
add esp, 0x1c
test edi, edi
je 0x1006b622
push 0x5f
push edi
call fcn.1008c640
add esp, 8
test eax, eax
je 0x1006b622
inc eax
push eax
call fcn.10092459
add esp, 4
cmp eax, 0xf
jge 0x1006b62c
mov eax, 0xa
jmp 0x1006b6e4
test ebx, ebx
je 0x1006b6ac
lea edx, [esp + 0x78]
mov ecx, edi
sub edx, edi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x1006b640
cmp dword [esp + 0x14], 1
jne 0x1006b65d
push edi
call fcn.10092afa
add esp, 4
cmp dword [0x103f7c6c], 1
jne 0x1006b689
test ebp, ebp
jne 0x1006b689
push ebx
lea eax, [esp + 0x7c]
push eax
push str.Not_present:__s__02i.png___falling_back_to_palette_0_n
push dword [0x104072bc]
push ebp
push str.INFO
call fcn.10067cf0
add esp, 0x18
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x34]
push 0
push dword [esp + 0x14]
push dword [esp + 0x34]
push 0
push eax
call fcn.1006aef0
add esp, 0x14
jmp 0x1006b6e4
cmp dword [0x103f7c6c], 0
je 0x1006b6d2
push 0
push edi
push str.Not_present:__s__02i.png_n
push dword [0x104072bc]
push 0
push str.INFO
call fcn.10067cf0
add esp, 0x18
cmp dword [esp + 0x14], 1
jne 0x1006b6e2
push edi
call fcn.10092afa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x77c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008a9cb
add esp, 0x770
ret