Function at 0x100604e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x6dc
mov eax, dword [0x102d4a48]
xor eax, esp
mov dword [esp + 0x6d4], eax
push ebx
mov ebx, dword [esp + 0x6e4]
push ebp
push esi
mov esi, dword [esp + 0x6f0]
push edi
push 1
push 0x18
mov dword [esp + 0x1c], esi
call fcn.10093169
push 0x400
mov edi, eax
mov ebp, esi
lea eax, [esp + 0x2ec]
push 0
push eax
call fcn.1008c9e0
add esp, 0x14
cmp dword [0x103f7ce8], 0
je 0x1006032e
cmp dword [ebx + 4], 0
je 0x10060311
mov eax, dword [ebx + 8]
shl eax, 8
add eax, str.char
push eax
push esi
push str.open__s__LGP:_s__n
jmp 0x10060319
push dword [ebx]
push esi
push str.open__s__mode__i__n
push dword [0x104072b0]
push 0
push str.TRACE
call fcn.10067cf0
add esp, 0x18
test edi, edi
je 0x100607c2
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060340
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.10092b15
mov ecx, eax
add esp, 4
mov dword [edi], ecx
mov edx, esi
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10060360
movups xmm0, xmmword [ebx]
movups xmmword [edi + 8], xmm0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100603b7
lea ecx, [esp + 0x218]
push ecx
push esi
call eax
add esp, 8
lea ebp, [esp + 0x218]
cmp dword [0x103f7cd0], 0
je 0x100603b7
mov eax, ebp
push eax
push str.mangled_name:__s_n
push dword [0x104072b0]
push 0
push str.TRACE
call fcn.10067cf0
add esp, 0x14
cmp dword [ebx + 4], 0
je 0x100604b2
push dword [edi + 0x10]
mov dword [0x102d7ed4], 0
push ebp
call fcn.1005fb90
mov edx, eax
mov dword [0x102d7ed4], 1
add esp, 8
mov dword [edi + 4], edx
lea esi, [edi + 4]
test edx, edx
jne 0x10060449
cmp dword [ebx + 0xc], eax
je 0x1006041e
cmp dword [0x103f7c80], eax
push ebp
push dword [esp + 0x18]
setne al
push str.offset_error:__s__s_n
push dword [0x104072a8]
push eax
push str.ERROR
call fcn.10067cf0
add esp, 0x18
jmp 0x10060732
push dword [esp + 0x14]
cmp dword [0x103f7c80], eax
push str.offset_error:__s_n
push dword [0x104072a8]
setne al
push eax
push str.ERROR
call fcn.10067cf0
add esp, 0x14
jmp 0x10060732
mov ecx, dword [edi + 0x10]
mov eax, dword [0x10406b80]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
jne 0x10060485
push dword [esp + 0x14]
xor eax, eax
cmp dword [0x103f7c80], eax
push str.seek_error:__s_n
push dword [0x104072a8]
setne al
push eax
push str.ERROR
call fcn.10067cf0
add esp, 0x14
jmp 0x10060732
mov eax, dword [edx + 4]
push 0
add eax, 0x18
push eax
push ecx
call fcn.100934a7
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x6e4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008a9cb
add esp, 0x6dc
ret
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x11c]
push eax
push 0
push 0
push ebp
call fcn.10093859
add esp, 0x14
xor esi, esi
nop
test esi, esi
jne 0x10060517
cmp dword [0x103f7ca8], esi
je 0x100605bd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x11c]
push eax
push dword [0x10407ad4]
lea eax, [esp + 0x2ec]
push 0x104072c0
push str._sThe_Reunion_CUSTOM__s_Direct__s_s
push 0x400
push eax
call fcn.10059d90
add esp, 0x1c
jmp 0x100605a7
cmp esi, 1
jne 0x10060542
cmp dword [0x103f7ce4], 0
je 0x100605bd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x11c]
push eax
push 0x104072c0
push str._sThe_Reunion_BASE_New_Translation__s_s
jmp 0x10060592
cmp esi, 2
jne 0x10060569
cmp dword [0x103f7ce0], 0
je 0x100605bd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x11c]
push eax
push 0x104072c0
push str._sThe_Reunion_BASE_Weapon__s_s
jmp 0x10060592
cmp esi, 3
jne 0x1006061d
cmp dword [0x103f7ca4], 0
je 0x100605bd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x11c]
push eax
push 0x104072c0
push str._sThe_Reunion_GLOBAL_Direct__s_s
lea eax, [esp + 0x2f0]
push 0x400
push eax
call fcn.10059d90
add esp, 0x18
lea eax, [esp + 0x2e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1006069c
inc esi
cmp esi, 3
jle 0x100604d0
push 1
push 0xc
lea esi, [edi + 4]
call fcn.10093169
add esp, 8
mov dword [esi], eax
cmp dword [0x103f7ce8], 0
je 0x100605fe
push dword [ebx]
push ebp
push str.open_file____s__mode__i__n
push dword [0x104072b0]
push 0
push str.TRACE
call fcn.10067cf0
add esp, 0x18
mov eax, dword [edi + 8]
test eax, eax
jne 0x10060626
push 0x102b32f0
push ebp
call fcn.1008e547
mov ecx, dword [esi]
add esp, 8
mov dword [ecx + 4], eax
jmp 0x10060726
ja 0x100605a7
jmp dword [esi*4 + 0x100607cc]
cmp eax, 1
jne 0x10060643
push 0x102affc8
push ebp
call fcn.1008e547
mov ecx, dword [esi]
add esp, 8
mov dword [ecx + 4], eax
jmp 0x10060726
cmp eax, 2
jne 0x10060660
push 0x102b3634
push ebp
call fcn.1008e547
mov ecx, dword [esi]
add esp, 8
mov dword [ecx + 4], eax
jmp 0x10060726
cmp eax, 3
jne 0x1006067d
push 0x102b3638
push ebp
call fcn.1008e547
mov ecx, dword [esi]
add esp, 8
mov dword [ecx + 4], eax
jmp 0x10060726
lea eax, [esp + 0x2e0]
push 0x102b363c
push eax
call fcn.1008e547
mov ecx, dword [esi]
add esp, 8
mov dword [ecx + 4], eax
jmp 0x10060726
push 1
push 0xc
lea esi, [edi + 4]
call fcn.10093169
mov dword [esi], eax
add esp, 8
mov eax, dword [edi + 8]
test eax, eax
jne 0x100606bb
push 0x102b32f0
jmp 0x100606e4
cmp eax, 1
jne 0x100606c7
push 0x102affc8
jmp 0x100606e4
cmp eax, 2
jne 0x100606d3
push 0x102b3634
jmp 0x100606e4
cmp eax, 3
jne 0x100606df
push 0x102b3638
jmp 0x100606e4
push 0x102b363c
lea eax, [esp + 0x2e4]
push eax
call fcn.1008e547
mov ecx, dword [esi]
add esp, 8
cmp dword [0x103f7cbc], 0
mov dword [ecx + 4], eax
je 0x10060726
push dword [ebx]
lea eax, [esp + 0x2e4]
push eax
push str.PERSONAL_FILE____s__mode__i__n
push dword [0x104072b0]
push 0
push str.TRACE
call fcn.10067cf0
add esp, 0x18
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x10060497
cmp dword [ebx + 4], 0
jne 0x10060760
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060740
sub ecx, edx
push str..ff7
lea eax, [ecx - 4]
add eax, ebp
push eax
call fcn.10093c24
add esp, 8
test eax, eax
je 0x10060788
push dword [esp + 0x14]
xor eax, eax
cmp dword [0x103f7c80], eax
push str.could_not_open_file__s_n
push dword [0x104072a8]
setne al
push eax
push str.ERROR
call fcn.10067cf0
add esp, 0x14
mov eax, dword [esi]
test eax, eax
je 0x100607af
cmp dword [eax], 0
jne 0x100607a6
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100607a6
push ecx
call fcn.1008e79a
mov eax, dword [edi + 4]
add esp, 4
push eax
call fcn.10092afa
add esp, 4
push dword [edi]
call fcn.10092afa
add esp, 4
push edi
call fcn.10092afa
add esp, 4
xor eax, eax
jmp 0x10060499