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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x410040]
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 0x4084a3
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40849e
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4084a3
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4084a3
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 0x4084b0
mov ecx, dword [0x40dc00]
mov edx, dword [0x40dc04]
mov dword [eax], ecx
mov ecx, dword [0x40dc08]
mov dword [eax + 4], edx
mov edx, dword [0x40dc0c]
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 0x4084f7
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 0x408513
sub eax, edx
sar eax, 1
jne 0x40865b
mov eax, dword [edi + 0x1034]
cmp eax, ebx
jne 0x408539
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 0x40865b
cmp eax, ebx
je 0x40865b
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 0x40857f
push 0x2f
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x408583
mov word [eax + 2], bx
mov eax, esi
add eax, 0xfffffffe
jmp 0x408590
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408590
mov ecx, dword [str.config]
mov dword [eax], ecx
mov edx, dword [0x40dc14]
mov dword [eax + 4], edx
mov ecx, dword [0x40dc18]
mov dword [eax + 8], ecx
mov edx, dword [0x40dc1c]
push esi
mov dword [eax + 0xc], edx
call ebp
cmp eax, 0xffffffff
jne 0x4085cf
mov word [esi], bx
jmp 0x40865b
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4085d4
mov eax, dword [0x40d95c]
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 0x4085f0
mov ecx, dword [str.HaoZip.hzv]
mov dword [eax], ecx
mov edx, dword [0x40d708]
mov dword [eax + 4], edx
mov ecx, dword [0x40d70c]
push ebx
push 0x80
mov dword [eax + 8], ecx
mov edx, dword [0x40d710]
push 4
mov dword [eax + 0xc], edx
mov ecx, dword [0x40d714]
push ebx
push 7
mov dword [eax + 0x10], ecx
mov dx, word [0x40d718]
push 0xc0000000
push esi
mov word [eax + 0x14], dx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x408654
mov word [esi], bx
jmp 0x40865b
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 0x408661
sub eax, edx
sar eax, 1
jne 0x408701
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 0x408690
sub eax, edx
sar eax, 1
je 0x408701
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4086a6
mov ecx, dword [0x40d95c]
mov dword [edi], ecx
add esi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x4086c0
mov edx, dword [str.HaoZip.hzv]
mov dword [esi], edx
mov eax, dword [0x40d708]
mov dword [esi + 4], eax
mov ecx, dword [0x40d70c]
mov dword [esi + 8], ecx
mov edx, dword [0x40d710]
mov dword [esi + 0xc], edx
mov eax, dword [0x40d714]
mov dword [esi + 0x10], eax
mov cx, word [0x40d718]
mov word [esi + 0x14], cx
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b47e
add esp, 0x41c
ret