Function at 0x4171c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c3ab
push eax
mov dword fs:[0], esp
sub esp, 0x380
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x3c]
mov byte [esi + 8], bl
push edi
lea edi, [esi + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x44]
mov dword [esi + 0x44], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x34]
mov dword [esi + 0x34], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
call fcn.00403410
mov ebp, dword [esp + 0x3a0]
mov byte [esi + 0x29], bl
cmp ebp, ebx
jne 0x417241
mov ecx, dword [esp + 0x3a4]
cmp ecx, ebx
je 0x41723a
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x4173f2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4172bf
mov edi, dword [esp + 0x3a4]
cmp edi, ebx
je 0x417285
lea eax, [esp + 0x6c]
push eax
push 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [edi]
lea eax, [esp + 0x6c]
push eax
push str.curDir
mov ecx, edi
call dword [edx + 0x28]
mov edx, dword [edi]
push str.loadFileInfoAnsi_failed:_cannot_get_attributes
mov ecx, edi
call dword [edx + 0x10]
push edi
push ebp
call fcn.00406460
add esp, 8
test al, al
jne 0x4172a7
cmp edi, ebx
mov byte [esi + 8], 1
je 0x4172b8
mov eax, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [eax + 0x10]
cmp edi, ebx
je 0x4172b8
mov edx, dword [edi]
push ebp
push str.filename
mov ecx, edi
call dword [edx + 0x28]
xor al, al
jmp 0x4173f2
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.004025c0
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x39c], ebx
call fcn.004027a0
lea ecx, [esp + 0x10]
call fcn.00402f10
push eax
mov ecx, edi
call fcn.00403e90
mov al, byte [esi + 0x28]
mov ebp, dword [esp + 0x3a4]
cmp al, bl
push ebp
je 0x417310
lea eax, [esp + 0x14]
push eax
call fcn.00405d20
jmp 0x41731a
lea ecx, [esp + 0x14]
push ecx
call fcn.00405bc0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x417365
cmp ebp, ebx
je 0x41734a
mov edx, dword [ebp]
push str.loadFileInfoAnsi_failed:_cannot_open_for_reading
mov ecx, ebp
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3a0]
mov eax, dword [ebp]
push ecx
push str.filename
mov ecx, ebp
call dword [eax + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00402680
xor al, al
jmp 0x4173f2
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x4173c4
cmp ebp, ebx
je 0x4173a2
mov edx, dword [ebp]
push str.loadFileInfoAnsi_failed:_cannot_get_file_time
mov ecx, ebp
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3a0]
mov eax, dword [ebp]
push ecx
push str.filename
mov ecx, ebp
call dword [eax + 0x28]
push ebx
push edi
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00402680
xor al, al
jmp 0x4173f2
lea edx, [esi + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
mov dword [esi + 0x2c], eax
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00402680
mov al, 1
mov ecx, dword [esp + 0x390]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38c
ret 8