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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x55c
mov dword [ebp - 0x530], eax
mov eax, dword [0x4ad5f8]
mov dword [ebp - 0x538], edx
mov esi, dword [eax + 0x1304]
mov dword [ebp - 0x52c], ecx
test esi, esi
je 0x415fa6
mov edi, dword [sym.imp.ucrtbase.dll_strcmp]
mov dword [ebp - 0x534], esi
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x530]
jmp 0x415e9b
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x415fa0
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call esi
test eax, eax
jne 0x415e90
mov eax, dword [ebx + 4]
xor ecx, ecx
lea edx, [ebp - 0x520]
call dbg.source_map_file
mov dword [ebp - 0x534], eax
cmp eax, 0xffffffff
je 0x415f98
mov edx, dword [ebp - 0x538]
lea esi, [ebp - 0x418]
sub edx, 1
cmp edx, dword [ebp - 0x52c]
jge 0x415f74
mov eax, ebx
mov ebx, edx
mov edx, eax
jmp 0x415f5b
xor eax, eax
mov ecx, 0x100
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x14]
mov eax, dword [ecx + ebx*4 + 4]
mov ecx, dword [ecx + ebx*4]
cmp eax, ecx
je 0x415f30
sub eax, 1
mov dword [esp], esi
sub eax, ecx
add ecx, dword [ebp - 0x534]
mov dword [ebp - 0x530], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym._memcpy
mov edx, dword [ebp - 0x530]
add ebx, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], str._d_t_s_n
mov dword [ebp - 0x530], edx
call dbg.dbg_printf
mov edx, dword [ebp - 0x530]
cmp dword [ebp - 0x52c], ebx
jle 0x415f74
test ebx, ebx
js 0x415f69
mov eax, dword [edx + 0x10]
sub eax, 1
cmp eax, ebx
jg 0x415ef0
add ebx, 1
cmp dword [ebp - 0x52c], ebx
jg 0x415f5b
mov eax, dword [ebp - 0x534]
mov ebx, dword [ebp - 0x520]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x534]
mov eax, dword [ebp - 0x530]
mov dword [esp + 4], 0x5c
mov ebx, dword [sym.imp.ucrtbase.dll_strrchr]
mov dword [esp], eax
call ebx
test eax, eax
je 0x416280
add eax, 1
mov dword [ebp - 0x534], eax
test esi, esi
je 0x416008
mov edi, dword [sym.imp.ucrtbase.dll_strcmp]
mov ebx, dword [ebp - 0x534]
jmp 0x415fef
mov esi, dword [esi + 8]
test esi, esi
je 0x416008
mov dword [esp + 4], ebx
mov eax, dword [esi]
mov dword [esp], eax
call edi
test eax, eax
jne 0x415fe8
mov ebx, esi
jmp 0x415eaa
mov eax, dword [ebp - 0x530]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 0x53c], eax
call eax
sub esp, 4
cmp eax, 0xffffffff
jne 0x4160b8
mov eax, dword [0x4ad5f8]
lea ebx, [ebp - 0x51c]
mov edi, dword [eax + 0x1308]
mov eax, 0x43f943
test edi, edi
cmovne eax, edi
mov edi, dword [ebp - 0x530]
mov dword [ebp - 0x540], eax
mov esi, edi
lea esi, [esi]
nop
movzx eax, byte [esi]
test al, al
je 0x4161a8
cmp al, 0x2f
je 0x4161a8
mov ecx, esi
add esi, 1
cmp al, 0x5c
jne 0x416058
mov eax, dword [ebp - 0x540]
lea esi, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SearchPathA]
sub esp, 0x18
test eax, eax
je 0x416058
mov esi, ebx
jmp 0x4160d1
mov eax, dword [ebp - 0x530]
lea esi, [ebp - 0x51c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov eax, dword [ebp - 0x530]
mov edx, esi
call dbg.source_add_file
lea edx, [ebp - 0x520]
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, esi
call dbg.source_map_file
mov dword [ebp - 0x534], eax
cmp eax, 0xffffffff
je 0x415f98
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x10], 1
add ecx, eax
cmp eax, ecx
jae 0x4162e7
mov edx, 1
lea esi, [esi]
nop
add eax, 1
cmp byte [eax - 1], 0xa
jne 0x41612f
add edx, 1
mov dword [ebx + 0x10], edx
cmp eax, ecx
jne 0x416120
add edx, 1
lea eax, [edx*4]
mov dword [ebx + 0x10], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, dword [ebp - 0x534]
mov dword [ebx + 0x14], eax
mov dword [eax], 0
mov ecx, dword [ebx + 0xc]
lea eax, [edi + ecx]
cmp edi, eax
jae 0x4162db
mov eax, edi
mov esi, 1
lea esi, [esi]
add eax, 1
cmp byte [eax - 1], 0xa
jne 0x416189
mov edx, dword [ebx + 0x14]
mov ecx, eax
sub ecx, edi
mov dword [edx + esi*4], ecx
mov ecx, dword [ebx + 0xc]
add esi, 1
lea edx, [edi + ecx]
cmp eax, edx
jb 0x416170
shl esi, 2
sub eax, dword [ebp - 0x534]
mov edx, dword [ebx + 0x14]
mov dword [edx + esi], eax
jmp 0x415ec9
mov ecx, esi
test al, al
jne 0x416074
mov eax, dword [0x4ad314]
test eax, eax
je 0x4162ac
mov edi, dword [sym.imp.ucrtbase.dll_strlen]
lea esi, [ebp - 0x51c]
lea ebx, [ebp - 0x418]
jmp 0x41622d
movzx edx, byte [ebp + eax - 0x51d]
cmp dl, 0x2f
je 0x4161f5
cmp dl, 0x5c
je 0x4161f5
mov byte [ebp + eax - 0x51c], 0x2f
add eax, 1
mov edx, dword [ebp - 0x534]
add eax, esi
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp], esi
mov eax, dword [ebp - 0x53c]
call eax
sub esp, 4
cmp eax, 0xffffffff
jne 0x416270
mov dword [esp + 4], esi
mov dword [esp], str.Unable_to_access_file__s_n
call dbg.dbg_printf
mov eax, dword [ebp - 0x530]
mov dword [esp + 8], str.Enter_path_to_file__s___cr__to_end_search_:
mov dword [esp + 4], 0x100
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._snprintf.constprop.0
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.input_read_line
mov dword [esp], esi
call edi
test eax, eax
jne 0x4161d8
cmp byte [ebp - 0x51c], 0
jne 0x4160d1
jmp 0x4162c9
mov eax, dword [ebp - 0x530]
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call ebx
test eax, eax
jne 0x415fc7
mov eax, dword [ebp - 0x530]
mov dword [ebp - 0x534], eax
jmp 0x415fd0
mov eax, dword [ebp - 0x530]
mov dword [esp], str.Unable_to_access_file__s_n
mov dword [esp + 4], eax
call dbg.dbg_printf
mov byte [ebp - 0x51c], 0
mov eax, dword [ebp - 0x530]
xor edx, edx
call dbg.source_add_file
jmp 0x415f98
xor eax, eax
mov esi, 4
jmp 0x416199
mov eax, 8
mov edx, 2
jmp 0x41613d