Function at 0x406890
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46b317
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4811f4]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c0]
push 0x206
xor esi, esi
lea edx, [esp + 0xaa]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0xb0], cx
call fcn.0044ae50
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
push 1
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.KuaiZip
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406958
push esi
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x406958
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edx, edx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
mov word [esp + 0x70], dx
mov dword [esp + 0x2b8], esi
lea esi, [esp + 0x18]
call fcn.00406cb0
mov ebx, eax
lea esi, [esp + 0x88]
mov byte [esp + 0x2b8], 1
call fcn.00405740
mov bl, 3
mov byte [esp + 0x2b8], bl
cmp dword [esp + 0x30], 0x10
jb 0x4069b4
mov eax, dword [esp + 0x1c]
push eax
call fcn.004472f6
add esp, 4
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov ebp, 8
je 0x406a5f
lea ecx, [esp + 0x88]
push ecx
lea esi, [esp + 0x54]
call fcn.00407570
add esp, 4
mov ecx, eax
lea edi, [esp + 0x34]
mov byte [esp + 0x2b8], 4
call fcn.00407630
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x2c4], 5
call fcn.00401d20
cmp dword [esp + 0x4c], ebp
jb 0x406a2c
mov edx, dword [esp + 0x38]
push edx
call fcn.004472f6
add esp, 4
xor eax, eax
mov byte [esp + 0x2b8], bl
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp dword [esp + 0x68], ebp
jb 0x406a6f
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004472f6
add esp, 4
jmp 0x406a6f
push 0x12
push str.KuaizipPackage.exe
lea ecx, [esp + 0x74]
call fcn.00401c30
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], ebp
jae 0x406a80
lea eax, [esp + 0x70]
push eax
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xa4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406aa0
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
add ecx, 4
call fcn.00401c30
cmp dword [esp + 0xa0], ebp
jb 0x406add
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004472f6
add esp, 4
xor edx, edx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], dx
cmp dword [esp + 0x84], ebp
jb 0x406b13
mov eax, dword [esp + 0x70]
push eax
call fcn.004472f6
add esp, 4
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00447258
add esp, 0x2a8
ret 4