Function at 0x4089c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a817
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x198f4
call fcn.00415700
mov eax, dword [0x4202b0]
xor eax, esp
mov dword [esp + 0x198f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4202b0]
xor eax, esp
push eax
lea eax, [esp + 0x19908]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea edx, [esp + 0x14]
push edx
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2f4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x2f4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x408a70
mov ecx, dword [str.NaiTang_]
mov edx, dword [0x41d230]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [eax], ecx
mov ecx, dword [0x41d234]
mov dword [eax + 4], edx
mov edx, dword [0x41d238]
mov dword [eax + 8], ecx
mov ecx, dword [0x41d23c]
mov dword [eax + 0xc], edx
push esi
lea edx, [esp + 0x2f8]
push edx
mov dword [eax + 0x10], ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408acc
call ebx
cmp eax, 0xb7
jne 0x408b1f
lea eax, [esp + 0x2f4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x408ad6
mov ecx, dword [str.Install_]
mov edx, dword [0x41d244]
mov dword [eax], ecx
mov ecx, dword [0x41d248]
mov dword [eax + 4], edx
mov edx, dword [0x41d24c]
mov dword [eax + 8], ecx
mov ecx, dword [0x41d250]
mov dword [eax + 0xc], edx
push esi
lea edx, [esp + 0x2f8]
push edx
mov dword [eax + 0x10], ecx
call edi
test eax, eax
jne 0x408b1f
call ebx
push 0x206
lea ecx, [esp + 0xf2]
xor eax, eax
push esi
push ecx
mov word [esp + 0xf8], ax
call fcn.004104c0
add esp, 0xc
push 0xff
lea edx, [esp + 0x500]
push edx
push 0x68
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ebx, [esp + 0x8fc]
lea ecx, [esp + 0x4fc]
call fcn.004086f0
lea eax, [esp + 0x5c]
push eax
call fcn.00401670
xor esi, esi
mov dword [esp + 0x19910], esi
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x28], esi
mov byte [esp + 0x19910], 2
mov eax, ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408bb0
sub eax, edx
push eax
lea ecx, [esp + 0x900]
push ecx
lea ecx, [esp + 0x34]
call fcn.004048d0
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1991c], 3
call fcn.004047f0
mov eax, dword [esp + 0xa0]
mov edi, 0x10
cmp dword [esp + 0xb4], edi
jae 0x408c03
lea eax, [esp + 0xa0]
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x1c]
push edx
add ecx, eax
push ecx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00401750
mov byte [esp + 0x19910], 2
mov bl, al
cmp dword [esp + 0x44], edi
jb 0x408c3a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00409a49
add esp, 4
test bl, bl
je 0x408d12
push 0x41d254
lea ecx, [esp + 0x20]
call fcn.00403d30
push str.version_name
mov ecx, eax
call fcn.00403d30
push eax
lea ecx, [esp + 0x30]
call fcn.00403850
mov bl, 4
push 0x41d254
lea ecx, [esp + 0x20]
mov byte [esp + 0x19914], bl
call fcn.00403d30
push str.app_file
mov ecx, eax
call fcn.00403d30
push eax
lea ecx, [esp + 0x50]
call fcn.00403850
mov byte [esp + 0x19910], 5
cmp byte [esp + 0x34], bl
jne 0x408cc6
mov edx, dword [esp + 0x2c]
push edx
call fcn.00408690
add esp, 4
lea edx, [esp + 0x6fc]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, si
jne 0x408cb5
cmp byte [esp + 0x54], bl
jne 0x408cf1
mov eax, dword [esp + 0x4c]
push eax
call fcn.00408690
add esp, 4
lea edx, [esp + 0x4fc]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, si
jne 0x408ce0
lea eax, [esp + 0x4c]
mov byte [esp + 0x19910], bl
call fcn.004039b0
lea eax, [esp + 0x2c]
mov byte [esp + 0x19910], 2
call fcn.004039b0
xor eax, eax
jmp 0x408d20
movzx ecx, word [esp + eax + 0x2f4]
mov word [esp + eax + 0xec], cx
add eax, 2
cmp cx, si
jne 0x408d20
lea edi, [esp + 0xec]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x408d42
mov ecx, 7
mov esi, str.naitang_mini_
lea eax, [esp + 0x6fc]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d63
lea edi, [esp + 0xec]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408d80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xec]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408da6
mov ecx, dword [str..exe]
mov edx, dword [0x41d294]
mov dword [eax], ecx
mov cx, word [0x41d298]
mov dword [eax + 4], edx
lea edx, [esp + 0xec]
push edx
mov word [eax + 8], cx
call fcn.004085a0
test al, al
jne 0x408df2
lea edx, [esp + 0xec]
lea ecx, [esp + 0x4fc]
call fcn.004087f0
mov eax, dword [esp + 0x18]
push eax
lea ebx, [esp + 0xf0]
call fcn.00408e50
lea eax, [esp + 0x1c]
mov byte [esp + 0x19910], 0
call fcn.004039b0
lea edi, [esp + 0x5c]
call fcn.00403630
xor eax, eax
mov ecx, dword [esp + 0x19908]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198f0]
xor ecx, esp
call fcn.00409129
mov esp, ebp
pop ebp
ret 4