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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c68b
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.00403660
mov ebp, dword [esp + 0x3a0]
mov byte [esi + 0x29], bl
cmp ebp, ebx
jne 0x417741
mov ecx, dword [esp + 0x3a4]
cmp ecx, ebx
je 0x41773a
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x4178f2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4177bf
mov edi, dword [esp + 0x3a4]
cmp edi, ebx
je 0x417785
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.00406710
add esp, 8
test al, al
jne 0x4177a7
cmp edi, ebx
mov byte [esi + 8], 1
je 0x4177b8
mov eax, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [eax + 0x10]
cmp edi, ebx
je 0x4177b8
mov edx, dword [edi]
push ebp
push str.filename
mov ecx, edi
call dword [edx + 0x28]
xor al, al
jmp 0x4178f2
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00402800
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x39c], ebx
call fcn.004029e0
lea ecx, [esp + 0x10]
call fcn.00403140
push eax
mov ecx, edi
call fcn.00404140
mov al, byte [esi + 0x28]
mov ebp, dword [esp + 0x3a4]
cmp al, bl
push ebp
je 0x417810
lea eax, [esp + 0x14]
push eax
call fcn.00405fd0
jmp 0x41781a
lea ecx, [esp + 0x14]
push ecx
call fcn.00405e70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x417865
cmp ebp, ebx
je 0x41784a
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.004028c0
xor al, al
jmp 0x4178f2
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 0x4178c4
cmp ebp, ebx
je 0x4178a2
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.00413930
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.004028c0
xor al, al
jmp 0x4178f2
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.00413930
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.004028c0
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