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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x40f384]
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 0x404733
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40472e
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404733
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x404733
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 0x404740
mov ecx, dword [0x40cb18]
mov edx, dword [0x40cb1c]
mov dword [eax], ecx
mov ecx, dword [0x40cb20]
mov dword [eax + 4], edx
mov edx, dword [0x40cb24]
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 0x404787
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 0x4047a3
sub eax, edx
sar eax, 1
jne 0x4048eb
mov eax, dword [edi + 0x1034]
cmp eax, ebx
jne 0x4047c9
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 0x4048eb
cmp eax, ebx
je 0x4048eb
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 0x40480f
push 0x2f
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x404813
mov word [eax + 2], bx
mov eax, esi
add eax, 0xfffffffe
jmp 0x404820
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x404820
mov ecx, dword [str.config]
mov dword [eax], ecx
mov edx, dword [0x40cb2c]
mov dword [eax + 4], edx
mov ecx, dword [0x40cb30]
mov dword [eax + 8], ecx
mov edx, dword [0x40cb34]
push esi
mov dword [eax + 0xc], edx
call ebp
cmp eax, 0xffffffff
jne 0x40485f
mov word [esi], bx
jmp 0x4048eb
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x404864
mov eax, dword [0x40c824]
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 0x404880
mov ecx, dword [str.HaoZip.hzv]
mov dword [eax], ecx
mov edx, dword [0x40c660]
mov dword [eax + 4], edx
mov ecx, dword [0x40c664]
push ebx
push 0x80
mov dword [eax + 8], ecx
mov edx, dword [0x40c668]
push 4
mov dword [eax + 0xc], edx
mov ecx, dword [0x40c66c]
push ebx
push 7
mov dword [eax + 0x10], ecx
mov dx, word [0x40c670]
push 0xc0000000
push esi
mov word [eax + 0x14], dx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4048e4
mov word [esi], bx
jmp 0x4048eb
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 0x4048f1
sub eax, edx
sar eax, 1
jne 0x404991
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 0x404920
sub eax, edx
sar eax, 1
je 0x404991
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x404936
mov ecx, dword [0x40c824]
mov dword [edi], ecx
add esi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x404950
mov edx, dword [str.HaoZip.hzv]
mov dword [esi], edx
mov eax, dword [0x40c660]
mov dword [esi + 4], eax
mov ecx, dword [0x40c664]
mov dword [esi + 8], ecx
mov edx, dword [0x40c668]
mov dword [esi + 0xc], edx
mov eax, dword [0x40c66c]
mov dword [esi + 0x10], eax
mov cx, word [0x40c670]
mov word [esi + 0x14], cx
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409ed0
add esp, 0x41c
ret