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

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x412034]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push ebx
xor ebx, ebx
cmp byte [0x413dc8], bl
jne 0x4013f9
push 0x40e
lea eax, [ebp - 0x7a]
push ebx
push eax
mov byte [0x413dc8], 1
mov word [ebp - 0x7c], bx
call fcn.00406040
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401229
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x401225
cmp dword [ebp - 0x80], ebx
je 0x401229
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x401229
mov word [ebp - 0x7c], bx
push esi
mov esi, 0x40fae0
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040591d
lea eax, [ebp - 0x7c]
push 0x40fae4
push eax
call fcn.0040591d
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40125d
mov word [ebp - 0x7c], bx
push edi
push 0x410
lea eax, [ebp + 0x396]
push ebx
push eax
mov word [ebp + 0x394], bx
call fcn.00406040
lea eax, [ebp - 0x7c]
push eax
call fcn.00405963
add esp, 0x10
test eax, eax
mov edi, str.HaoZip.hzv
jne 0x40137c
mov eax, dword [0x413dc4]
cmp eax, ebx
jne 0x4012a0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x411
lea ecx, [ebp + 0x394]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x412
jae 0x40137c
cmp eax, ebx
je 0x40137c
mov word [ebp + eax*2 + 0x394], bx
lea eax, [ebp + 0x394]
push 0x5c
push eax
call fcn.004058ed
cmp eax, ebx
pop ecx
pop ecx
jne 0x4012f6
lea eax, [ebp + 0x394]
push 0x2f
push eax
call fcn.004058ed
cmp eax, ebx
pop ecx
pop ecx
je 0x4012fa
mov word [eax + 2], bx
lea eax, [ebp + 0x394]
push esi
push eax
call fcn.0040591d
lea eax, [ebp + 0x394]
push str.config
push eax
call fcn.0040591d
add esp, 0x10
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40136c
lea eax, [ebp + 0x394]
push esi
push eax
call fcn.0040591d
lea eax, [ebp + 0x394]
push edi
push eax
call fcn.0040591d
add esp, 0x10
push ebx
push 0x80
push 4
push ebx
push 7
push 0xc0000000
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401375
mov word [ebp + 0x394], bx
jmp 0x40137c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x394]
push eax
call fcn.00405963
test eax, eax
pop ecx
jne 0x4013d2
push 0x207
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x394]
push eax
call fcn.00405aaf
lea eax, [ebp + 0x394]
push eax
call fcn.00405963
add esp, 0x10
test eax, eax
jbe 0x4013d2
lea eax, [ebp + 0x394]
push esi
push eax
call fcn.0040591d
lea eax, [ebp + 0x394]
push edi
push eax
call fcn.0040591d
add esp, 0x10
call fcn.00402cb4
mov esi, eax
lea eax, [ebp + 0x394]
push eax
call fcn.00405963
test eax, eax
pop ecx
pop edi
jbe 0x4013f8
lea edx, [ebp + 0x394]
mov ecx, esi
call fcn.00402d3e
pop esi
mov ecx, dword [ebp + 0x7a8]
xor ecx, ebp
pop ebx
call fcn.004058de
add ebp, 0x7ac
leave
ret