Function at 0x46902d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x88
mov eax, 0x4985ff
call fcn.00496159
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
push 0x4bc86c
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jne 0x46908a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0045fe4f
lea ecx, [ebp + 8]
call fcn.0045ddba
xor eax, eax
inc eax
call fcn.00496231
ret 0xc
lea ecx, [ebp - 0x94]
call fcn.004435b5
push edi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.0044379b
lea ecx, [ebp - 0x94]
test al, al
jne 0x4690bd
mov byte [ebp - 4], 1
call fcn.00442971
jmp 0x46906b
push 0x49de0c
call fcn.00442ea8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.004627c5
test eax, eax
jne 0x4690e8
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
lea ecx, [ebp - 0x94]
jmp 0x4690b2
push 0x49def0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004442a4
lea ecx, [ebp - 0x10]
call fcn.004627c5
push 8
pop esi
test eax, eax
je 0x469150
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444281
mov ecx, eax
call fcn.004627e3
test eax, eax
je 0x469150
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444281
mov ecx, eax
call fcn.004627e3
mov eax, dword [eax + 0x20]
add eax, esi
je 0x469150
push eax
lea ecx, [ebp - 0x30]
call fcn.004648c1
mov ebx, dword [ebp + 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.0045e612
jmp 0x469153
mov ebx, dword [ebp + 0x10]
push 0x49dee8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004442a4
lea ecx, [ebp - 0x10]
call fcn.004627c5
test eax, eax
je 0x46919c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444281
mov ecx, eax
call fcn.004627e3
mov eax, dword [eax + 0x20]
add eax, esi
je 0x46919c
push eax
lea ecx, [ebp - 0x30]
call fcn.004648c1
push eax
lea ecx, [ebx + 8]
call fcn.0045e612
push 0x49dedc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004442a4
lea ecx, [ebp - 0x10]
call fcn.004627c5
test eax, eax
je 0x4691e9
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444281
mov ecx, eax
call fcn.004627e3
cmp eax, edi
je 0x4691e9
mov eax, dword [eax + 0x20]
add eax, esi
je 0x4691e9
push eax
lea ecx, [ebp - 0x30]
call fcn.004648c1
push eax
lea ecx, [ebx + 0xc]
call fcn.0045e612
push 0x49ded0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004442a4
lea ecx, [ebp - 0x10]
call fcn.004627c5
test eax, eax
je 0x469236
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444281
mov ecx, eax
call fcn.004627e3
cmp eax, edi
je 0x469236
mov eax, dword [eax + 0x20]
add eax, esi
je 0x469236
push eax
lea ecx, [ebp - 0x30]
call fcn.004648c1
push eax
lea ecx, [ebx + 0x10]
call fcn.0045e612
push 0x49dec0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004442a4
lea ecx, [ebp - 0x10]
call fcn.004627c5
test eax, eax
je 0x469283
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00444281
mov ecx, eax
call fcn.004627e3
cmp eax, edi
je 0x469283
mov eax, dword [eax + 0x20]
add eax, esi
je 0x469283
push eax
lea ecx, [ebp - 0x30]
call fcn.004648c1
push eax
lea ecx, [ebx + 0x1c]
call fcn.0045e612
cmp dword [ebp + 0xc], edi
je 0x4694d8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045e829
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, edi
je 0x4692da
sub eax, dword [ebp + 8]
sar eax, 1
js 0x4692da
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004600e8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0045f9b8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0045ddba
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00464772
mov eax, dword [eax]
mov esi, 0x49da74
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x10]
setne bl
call fcn.0045ddba
test bl, bl
je 0x469313
push esi
lea ecx, [ebp - 0x20]
call fcn.0045f443
push str.FileList
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004442a4
lea ecx, [ebp - 0x34]
call fcn.004627c5
test eax, eax
jne 0x46936f
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0045ddba
xor esi, esi
inc esi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00442971
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0045fe4f
lea ecx, [ebp + 8]
call fcn.0045ddba
mov eax, esi
jmp 0x469082
push str.FileItem
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.004442a4
lea ecx, [ebp + 0xc]
call fcn.004627c5
test eax, eax
je 0x4694d0
push 0x49de40
lea ecx, [ebp + 0xc]
call fcn.004627c5
mov ecx, eax
call fcn.0044323d
push 0x49de80
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.004627c5
mov ecx, eax
call fcn.0044323d
push str.optional
lea ecx, [ebp + 0xc]
mov ebx, eax
call fcn.004627c5
mov ecx, eax
call fcn.0044323d
mov edi, eax
test esi, esi
je 0x4694a7
push esi
lea ecx, [ebp - 0x30]
call fcn.004648c1
push eax
lea ecx, [ebp - 0x10]
call fcn.0045ffe5
lea ecx, [ebp - 0x4c]
call fcn.00463da4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.0045f9b8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004647c9
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.0045f9b8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0045ddba
test ebx, ebx
je 0x469444
push ebx
lea ecx, [ebp - 0x30]
call fcn.004648c1
push eax
lea ecx, [ebp - 0x44]
call fcn.0045e612
and dword [ebp - 0x40], 0
test edi, edi
je 0x469464
push 0x49de70
push edi
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x469464
mov dword [ebp - 0x3c], 1
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x469493
test al, 0x10
jne 0x469493
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x10]
push eax
add ecx, 0xa0
call fcn.004680f7
mov ecx, eax
call fcn.00464501
lea ecx, [ebp - 0x4c]
call fcn.00463869
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0045ddba
lea ecx, [ebp + 0xc]
call fcn.004627c5
push str.FileItem
mov ecx, eax
call fcn.00442f6f
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
call fcn.004627c5
test eax, eax
jne 0x469390
xor edi, edi
lea ecx, [ebp - 0x20]
call fcn.0045ddba
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
xor esi, esi
jmp 0x469345