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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x538
mov dword [ebp - 0x518], eax
mov eax, dword [0x43ac08]
mov dword [ebp - 0x520], edx
mov esi, dword [eax + 0x130c]
mov dword [ebp - 0x524], ecx
test esi, esi
je 0x430786
mov edi, dword [sym.imp.ucrtbase.dll_strcmp]
mov dword [ebp - 0x51c], esi
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x518]
jmp 0x43068b
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x430780
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call esi
test eax, eax
jne 0x430680
mov eax, dword [ebx + 4]
xor ecx, ecx
lea edx, [ebp - 0x514]
call sym._source_map_file
mov dword [ebp - 0x51c], eax
cmp eax, 0xffffffff
je 0x430778
mov esi, dword [ebp - 0x524]
mov eax, dword [ebp - 0x520]
dec esi
lea edx, [eax - 1]
cmp edx, esi
jg 0x430754
mov dword [ebp - 0x518], esi
mov esi, ebx
mov ebx, edx
jmp 0x43073f
xor eax, eax
mov ecx, 0x100
lea edi, [ebp - 0x40c]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + ebx*4 + 4]
mov ecx, dword [ecx + ebx*4]
cmp eax, ecx
je 0x43071c
dec eax
sub eax, ecx
add ecx, dword [ebp - 0x51c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
inc ebx
lea eax, [ebp - 0x40c]
mov dword [esp], str._d_t_s_n
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call sym._dbg_printf
cmp dword [ebp - 0x518], ebx
jl 0x430754
test ebx, ebx
js 0x43074b
mov eax, dword [esi + 0x10]
dec eax
cmp eax, ebx
jg 0x4306e0
inc ebx
cmp dword [ebp - 0x518], ebx
jge 0x43073f
mov eax, dword [ebp - 0x51c]
mov ebx, dword [ebp - 0x514]
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 - 0x51c]
mov eax, dword [ebp - 0x518]
mov dword [esp + 4], 0x5c
mov ebx, dword [sym.imp.ucrtbase.dll_strrchr]
mov dword [esp], eax
call ebx
test eax, eax
je 0x430a58
inc eax
mov dword [ebp - 0x51c], eax
test esi, esi
je 0x4307e0
mov edi, dword [sym.imp.ucrtbase.dll_strcmp]
mov ebx, dword [ebp - 0x51c]
jmp 0x4307c7
mov esi, dword [esi + 8]
test esi, esi
je 0x4307e0
mov dword [esp + 4], ebx
mov eax, dword [esi]
mov dword [esp], eax
call edi
test eax, eax
jne 0x4307c0
mov ebx, esi
jmp 0x43069a
mov eax, dword [ebp - 0x518]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 0x528], eax
call eax
sub esp, 4
cmp eax, 0xffffffff
jne 0x4308a0
mov eax, dword [0x43ac08]
mov edi, dword [ebp - 0x518]
lea ebx, [ebp - 0x510]
mov edx, dword [eax + 0x1310]
mov eax, 0x442543
mov esi, edi
test edx, edx
cmovne eax, edx
mov dword [ebp - 0x52c], eax
lea esi, cs:[esi]
movzx eax, byte [esi]
cmp al, 0x2f
je 0x430980
test al, al
jne 0x43085b
jmp 0x430980
movzx eax, byte [esi]
test al, al
je 0x430980
cmp al, 0x2f
je 0x430980
mov ecx, esi
inc esi
cmp al, 0x5c
jne 0x430848
mov eax, dword [ebp - 0x52c]
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 0x430830
mov esi, ebx
jmp 0x4308b9
mov eax, dword [ebp - 0x518]
lea esi, [ebp - 0x510]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov eax, dword [ebp - 0x518]
mov edx, esi
call sym._source_add_file
lea edx, [ebp - 0x514]
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, esi
call sym._source_map_file
mov dword [ebp - 0x51c], eax
cmp eax, 0xffffffff
je 0x430778
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x10], 1
add ecx, eax
cmp eax, ecx
jae 0x430abf
mov edx, 1
inc eax
cmp byte [eax - 1], 0xa
jne 0x43090b
inc edx
mov dword [ebx + 0x10], edx
cmp eax, ecx
jne 0x430900
inc edx
lea eax, [edx*4]
mov dword [ebx + 0x10], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, dword [ebp - 0x51c]
mov dword [ebx + 0x14], eax
mov dword [eax], 0
mov ecx, dword [ebx + 0xc]
lea eax, [edi + ecx]
cmp edi, eax
jae 0x430ab3
mov eax, edi
mov esi, 1
lea esi, cs:[esi]
nop
inc eax
cmp byte [eax - 1], 0xa
jne 0x430965
mov edx, dword [ebx + 0x14]
mov ecx, eax
sub ecx, edi
mov dword [edx + esi*4], ecx
mov ecx, dword [ebx + 0xc]
inc esi
lea edx, [edi + ecx]
cmp eax, edx
jb 0x430950
shl esi, 2
sub eax, dword [ebp - 0x51c]
mov edx, dword [ebx + 0x14]
mov dword [edx + esi], eax
jmp 0x4306b9
mov ecx, esi
test al, al
jne 0x430862
mov eax, dword [0x43ac20]
test eax, eax
je 0x430a84
mov edi, dword [sym.imp.ucrtbase.dll_strlen]
lea esi, [ebp - 0x510]
lea ebx, [ebp - 0x40c]
jmp 0x430a03
movzx edx, byte [ebp + eax - 0x511]
cmp dl, 0x2f
je 0x4309cb
cmp dl, 0x5c
je 0x4309cb
mov byte [ebp + eax - 0x510], 0x2f
inc eax
mov edx, dword [ebp - 0x51c]
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 - 0x528]
call eax
sub esp, 4
cmp eax, 0xffffffff
jne 0x430a46
mov dword [esp + 4], esi
mov dword [esp], str.Unable_to_access_file__s_n
call sym._dbg_printf
mov eax, dword [ebp - 0x518]
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 sym._input_read_line
mov dword [esp], esi
call edi
test eax, eax
jne 0x4309b0
cmp byte [ebp - 0x510], 0
jne 0x4308b9
jmp 0x430aa1
mov eax, dword [ebp - 0x518]
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call ebx
test eax, eax
jne 0x4307a7
mov eax, dword [ebp - 0x518]
mov dword [ebp - 0x51c], eax
jmp 0x4307ae
mov eax, dword [ebp - 0x518]
mov dword [esp], str.Unable_to_access_file__s_n
mov dword [esp + 4], eax
call sym._dbg_printf
mov byte [ebp - 0x510], 0
mov eax, dword [ebp - 0x518]
xor edx, edx
call sym._source_add_file
jmp 0x430778
xor eax, eax
mov esi, 4
jmp 0x430975
mov eax, 8
mov edx, 2
jmp 0x430917