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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x624], ecx
inc ebx
cmp dword [0x443abc], 0
jne 0x410ec3
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x410eb5
push ecx
lea eax, [ebp - 0x620]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x410d21
mov eax, dword [ebp - 0x620]
mov esi, 0x40258c
push ecx
push esi
push ecx
mov edx, edi
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x410d21
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410cdb
test al, 0x10
je 0x410d21
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x410d21
push ecx
lea eax, [ebp - 0x620]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x410d21
mov eax, dword [ebp - 0x620]
mov edx, edi
push ecx
push esi
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410eb5
test al, 0x10
jne 0x410eb5
push edi
lea eax, [ebp - 0x414]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410eb5
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x410d75
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x410d7e
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ecx
lea eax, [ebp - 0x620]
mov edx, edi
push eax
lea ecx, [ebp - 0x414]
call fcn.0040c131
test eax, eax
js 0x410eb5
mov eax, dword [ebp - 0x620]
sub edi, eax
push ecx
push 0x401d0c
push ecx
lea ecx, [ebp - 0x414]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0041fb3c
test eax, eax
js 0x410eb5
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410eb5
test al, 0x10
jne 0x410eb5
push 0xff
lea eax, [ebp - 0x61c]
push eax
push 0xaa
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x410eb5
imul ecx, dword [0x443aa8], 0x2c
mov eax, dword [str.6ij]
mov edi, dword [ebp - 0x624]
mov eax, dword [ecx + eax + 0x28]
push eax
push edi
mov dword [ebp - 0x628], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push edi
mov dword [ebp - 0x620], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
jne 0x410e6f
push 0x402
push dword [ebp - 0x624]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x28
call fcn.0044180c
pop ecx
test eax, eax
je 0x410ead
push ecx
push dword [ebp - 0x620]
lea ecx, [ebp - 0x414]
push dword [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
push edi
push 0x402
push ecx
mov ecx, eax
call fcn.0041bff8
mov esi, eax
mov dword [0x443abc], esi
jmp 0x410ebb
mov esi, dword [0x443abc]
neg esi
pop edi
sbb esi, esi
and ebx, esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret