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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x85c], ecx
mov eax, dword [ebp - 0x85c]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x42e1fd
jmp 0x42e571
mov edx, dword [ebp - 0x85c]
mov byte [edx + 4], 1
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x838], 0
lea ecx, [ebp - 0x838]
push ecx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x42e29d
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42e26c
cmp dword [ebp - 0x838], 0
je 0x42e26a
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42e29d
mov edx, 2
imul eax, edx, 0
mov dword [ebp - 0x860], eax
cmp dword [ebp - 0x860], 0x410
jae 0x42e288
jmp 0x42e28d
call fcn.00422e31
xor ecx, ecx
mov edx, dword [ebp - 0x860]
mov word [ebp + edx - 0x414], cx
lea eax, [ebp - 0x414]
add eax, 0xfffffffe
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x83c]
mov dx, word [ecx + 2]
mov word [ebp - 0x84a], dx
add dword [ebp - 0x83c], 2
cmp word [ebp - 0x84a], 0
jne 0x42e2ac
mov edi, dword [ebp - 0x83c]
mov eax, dword [0x437390]
mov dword [edi], eax
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov dword [ebp - 0x840], ecx
mov edx, dword [ebp - 0x840]
mov ax, word [edx + 2]
mov word [ebp - 0x84c], ax
add dword [ebp - 0x840], 2
cmp word [ebp - 0x84c], 0
jne 0x42e2ea
mov edi, dword [ebp - 0x840]
mov ecx, dword [0x4369d8]
mov dword [edi], ecx
mov edx, dword [0x4369dc]
mov dword [edi + 4], edx
mov eax, dword [0x4369e0]
mov dword [edi + 8], eax
mov cx, word [0x4369e4]
mov word [edi + 0xc], cx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e379
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x864], ecx
cmp dword [ebp - 0x864], 0x410
jae 0x42e364
jmp 0x42e369
call fcn.00422e31
xor edx, edx
mov eax, dword [ebp - 0x864]
mov word [ebp + eax - 0x414], dx
push 0x412
push 0
lea ecx, [ebp - 0x828]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x414]
mov dword [ebp - 0x82c], edx
mov eax, dword [ebp - 0x82c]
add eax, 2
mov dword [ebp - 0x868], eax
mov ecx, dword [ebp - 0x82c]
mov dx, word [ecx]
mov word [ebp - 0x84e], dx
add dword [ebp - 0x82c], 2
cmp word [ebp - 0x84e], 0
jne 0x42e3aa
mov eax, dword [ebp - 0x82c]
sub eax, dword [ebp - 0x868]
sar eax, 1
mov dword [ebp - 0x86c], eax
je 0x42e502
push 0x207
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x828]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x828]
mov dword [ebp - 0x830], eax
mov ecx, dword [ebp - 0x830]
add ecx, 2
mov dword [ebp - 0x870], ecx
mov edx, dword [ebp - 0x830]
mov ax, word [edx]
mov word [ebp - 0x850], ax
add dword [ebp - 0x830], 2
cmp word [ebp - 0x850], 0
jne 0x42e41c
mov ecx, dword [ebp - 0x830]
sub ecx, dword [ebp - 0x870]
sar ecx, 1
mov dword [ebp - 0x874], ecx
je 0x42e502
lea edx, [ebp - 0x828]
add edx, 0xfffffffe
mov dword [ebp - 0x844], edx
mov eax, dword [ebp - 0x844]
mov cx, word [eax + 2]
mov word [ebp - 0x852], cx
add dword [ebp - 0x844], 2
cmp word [ebp - 0x852], 0
jne 0x42e466
mov edi, dword [ebp - 0x844]
mov edx, dword [0x437390]
mov dword [edi], edx
lea eax, [ebp - 0x828]
add eax, 0xfffffffe
mov dword [ebp - 0x848], eax
mov ecx, dword [ebp - 0x848]
mov dx, word [ecx + 2]
mov word [ebp - 0x854], dx
add dword [ebp - 0x848], 2
cmp word [ebp - 0x854], 0
jne 0x42e4a5
mov edi, dword [ebp - 0x848]
mov eax, dword [str.HaoZip.hzv]
mov dword [edi], eax
mov ecx, dword [0x4373a4]
mov dword [edi + 4], ecx
mov edx, dword [0x4373a8]
mov dword [edi + 8], edx
mov eax, dword [0x4373ac]
mov dword [edi + 0xc], eax
mov ecx, dword [0x4373b0]
mov dword [edi + 0x10], ecx
mov dx, word [0x4373b4]
mov word [edi + 0x14], dx
call fcn.00411910
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x834], eax
mov ecx, dword [ebp - 0x834]
add ecx, 2
mov dword [ebp - 0x878], ecx
mov edx, dword [ebp - 0x834]
mov ax, word [edx]
mov word [ebp - 0x856], ax
add dword [ebp - 0x834], 2
cmp word [ebp - 0x856], 0
jne 0x42e528
mov ecx, dword [ebp - 0x834]
sub ecx, dword [ebp - 0x878]
sar ecx, 1
mov dword [ebp - 0x87c], ecx
je 0x42e571
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [ebp - 0x880]
call fcn.004119f0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret