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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x40a020]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x40e
lea eax, [esp + 0x1a]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x20], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x1a
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4034d3
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4034ce
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4034d3
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4034d3
mov word [esp + 0x14], bx
lea eax, [esp + 0x14]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4034e0
mov ecx, dword [str.HaoZip]
mov edx, dword [0x4085f4]
mov dword [eax], ecx
mov ecx, dword [0x4085f8]
mov dword [eax + 4], edx
mov edx, dword [0x4085fc]
mov dword [eax + 8], ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x18]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x403527
mov word [esp + 0x18], bx
push 0x410
lea esi, [edi + 0xc20]
push ebx
push esi
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403543
sub eax, edx
sar eax, 1
jne 0x40368b
mov eax, dword [edi + 0x1034]
cmp eax, ebx
jne 0x403569
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x40f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x410
jae 0x40368b
cmp eax, ebx
je 0x40368b
mov word [edi + eax*2 + 0xc20], bx
mov edi, dword [sym.imp.MSVCR80.dll_wcsrchr]
push 0x5c
push esi
call edi
add esp, 8
cmp eax, ebx
jne 0x4035af
push 0x2f
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x4035b3
mov word [eax + 2], bx
mov eax, esi
add eax, 0xfffffffe
jmp 0x4035c0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4035c0
mov ecx, dword [str.config]
mov dword [eax], ecx
mov edx, dword [0x408604]
mov dword [eax + 4], edx
mov ecx, dword [0x408608]
mov dword [eax + 8], ecx
mov edx, dword [0x40860c]
push esi
mov dword [eax + 0xc], edx
call ebp
cmp eax, 0xffffffff
jne 0x4035ff
mov word [esi], bx
jmp 0x40368b
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x403604
mov eax, dword [0x408610]
mov dword [edi], eax
mov eax, esi
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x403620
mov ecx, dword [str.HaoZip.hzv]
mov dword [eax], ecx
mov edx, dword [0x40828c]
mov dword [eax + 4], edx
mov ecx, dword [0x408290]
push ebx
push 0x80
mov dword [eax + 8], ecx
mov edx, dword [0x408294]
push 4
mov dword [eax + 0xc], edx
mov ecx, dword [0x408298]
push ebx
push 7
mov dword [eax + 0x10], ecx
mov dx, word [0x40829c]
push 0xc0000000
push esi
mov word [eax + 0x14], dx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x403684
mov word [esi], bx
jmp 0x40368b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea edx, [eax + 2]
pop ebp
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403691
sub eax, edx
sar eax, 1
jne 0x403731
push 0x207
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_wcsncpy]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4036c0
sub eax, edx
sar eax, 1
je 0x403731
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4036d6
mov ecx, dword [0x408610]
mov dword [edi], ecx
add esi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x4036f0
mov edx, dword [str.HaoZip.hzv]
mov dword [esi], edx
mov eax, dword [0x40828c]
mov dword [esi + 4], eax
mov ecx, dword [0x408290]
mov dword [esi + 8], ecx
mov edx, dword [0x408294]
mov dword [esi + 0xc], edx
mov eax, dword [0x408298]
mov dword [esi + 0x10], eax
mov cx, word [0x40829c]
mov word [esi + 0x14], cx
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040645e
add esp, 0x41c
ret