Function at 0x402230
Capabilities:
Check if file exists
Check os version
Contain obfuscated stackstrings
Create directory
Get common file path
Read .ini file
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x198c
call fcn.00415880
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1988], eax
push ebx
push esi
push edi
push str.WEIDUAN
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x402dd4
push 0x206
push eax
mov word [esp + 0x1790], ax
lea eax, [esp + 0x1792]
push eax
call fcn.0040be50
add esp, 0xc
lea ecx, [esp + 0x1788]
call fcn.00402110
mov byte [esp + 0xc], al
xor eax, eax
push 0x206
push eax
mov word [esp + 0x548], ax
lea eax, [esp + 0x54a]
push eax
call fcn.0040be50
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
lea eax, [esp + 0x54c]
add esp, 0xc
push 0
push 0x1a
push eax
call esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4226fc
lea eax, [esp + 0x544]
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [esp + 0x540]
push str.7k7kLegend_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
xor eax, eax
mov word [esp + 0x1170], ax
push 0x206
push eax
lea eax, [esp + 0x117a]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
push 0x7ab5e8
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.softinfo.ini
push 0x104
push 0x7ab5e8
call fcn.00409a21
add esp, 0xc
push 0x7ab3e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x402385
push 0x7ab5e8
push 0x104
push 0x7ab3e0
push 0x422700
push str.REName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x7ab3e0
call fcn.00401d80
call fcn.00401c90
mov dword [esp + 0x254], 0x4034b50
lea eax, [esp + 0x2e8]
mov dword [esp + 0x258], 0x14
movq xmm0, qword [esp + 0x254]
movq qword [0x427340], xmm0
movdqu xmm0, xmmword [str.weiduan.exe]
push 0x4c
push 0
movdqu xmmword [esp + 0x2d8], xmm0
push eax
movq xmm0, qword [0x4228e8]
movq qword [esp + 0x2ec], xmm0
call fcn.0040be50
add esp, 0xc
xor eax, eax
mov word [esp + 0xd60], ax
push 0x206
push eax
lea eax, [esp + 0xd6a]
push eax
call fcn.0040be50
add esp, 0xc
push 0
call fcn.00409d05
add esp, 4
push eax
call fcn.00409cf5
add esp, 4
call fcn.00409cd4
cdq
mov edi, 0x1a
idiv edi
add edx, 0x61
push edx
call fcn.00409cd4
cdq
idiv edi
add edx, 0x61
push edx
call fcn.00409cd4
cdq
idiv edi
add edx, 0x61
push edx
call fcn.00409cd4
cdq
idiv edi
add edx, 0x61
push edx
call fcn.00409cd4
cdq
idiv edi
lea eax, [esp + 0xd70]
add edx, 0x61
push edx
push str._c_c_c_c_c.exe
push eax
call fcn.00402df0
add esp, 0x18
call fcn.00406c10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40268d
xor eax, eax
xor edi, edi
push 0x206
push eax
mov word [esp + 0x340], ax
lea eax, [esp + 0x342]
push eax
call fcn.0040be50
add esp, 0xc
xor eax, eax
mov word [esp + 0x950], ax
push 0x206
push eax
lea eax, [esp + 0x95a]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x33c]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0x338]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40250e
push edi
lea eax, [esp + 0x33c]
push eax
call esi
lea eax, [esp + 0x10]
xor edx, edx
push eax
mov ecx, ebx
call fcn.00406ce0
add esp, 4
test eax, eax
jne 0x402687
jmp 0x402530
lea eax, [esp + 0x338]
push eax
lea eax, [esp + 0x954]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x402587
push str.WeiDuanS_
lea eax, [esp + 0x954]
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [esp + 0xd60]
jmp 0x40258b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x954]
push 0x104
push eax
call fcn.00409a21
mov eax, dword [esp + 0x228]
add esp, 0xc
test al, 0x10
je 0x4025bf
push 0
lea eax, [esp + 0x954]
push eax
call esi
mov eax, dword [esp + 0x21c]
test al, 0x20
je 0x40266d
push 0x422924
lea eax, [esp + 0x954]
push eax
lea eax, [esp + 0x25c]
push eax
call fcn.00409e12
add esp, 0xc
cmp dword [esp + 0x254], 0
je 0x40266d
push dword [esp + 0x23c]
call fcn.00409f21
add esp, 4
mov esi, eax
push dword [esp + 0x23c]
push 0
push esi
call fcn.0040be50
add esp, 0xc
cmp dword [ebx], 1
je 0x402622
mov dword [0x7ab9fc], 0x80000
jmp 0x402639
push ecx
push dword [esp + 0x240]
mov ecx, dword [ebx + 4]
push esi
push edi
call fcn.00406b10
mov dword [0x7ab9fc], eax
push dword [esp + 0x254]
push dword [esp + 0x240]
push 1
push esi
call fcn.0040a083
push dword [esp + 0x264]
call fcn.0040a171
add esp, 0x14
push esi
call fcn.00409c29
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
lea eax, [esp + 0x10]
inc edi
push eax
mov edx, edi
mov ecx, ebx
call fcn.00406ce0
add esp, 4
test eax, eax
je 0x402530
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0
push 1
push 0
push 5
push 0x10000000
push 0x7ab5e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x750], ax
lea eax, [esp + 0x752]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x74c]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0x748]
push str.WeiDuanS_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [esp + 0xd60]
push eax
lea eax, [esp + 0x74c]
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
xor eax, eax
mov word [esp + 0x1378], ax
push 0x206
push eax
lea eax, [esp + 0x1382]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x137c]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0x1378]
push str.WeiDuanN_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [esp + 0x1378]
push 0x42292c
push 0x104
push eax
call fcn.00409a21
mov bl, byte [esp + 0x18]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test bl, bl
je 0x402847
lea eax, [esp + 0x950]
mov dword [esp + 0x950], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x954], 5
jne 0x402834
cmp dword [esp + 0x958], 1
jne 0x402834
xor eax, eax
push 0x206
push eax
mov word [esp + 0x340], ax
lea eax, [esp + 0x342]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.WeiDuanS_
lea eax, [esp + 0x33c]
push eax
call edi
push dword [esp + 0xc]
lea edx, [esp + 0x33c]
push ecx
lea ecx, [esp + 0x750]
call fcn.00401180
add esp, 8
jmp 0x402847
push dword [esp + 0xc]
lea ecx, [esp + 0x74c]
call fcn.00401430
add esp, 4
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x206
push eax
mov word [esp + 0xb60], ax
lea eax, [esp + 0xb62]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0xb58]
push 0
push 2
push eax
call esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4226fc
lea eax, [esp + 0xb5c]
push eax
call edi
push str.7k7k
lea eax, [esp + 0xb5c]
push eax
call edi
push 0x4226fc
lea eax, [esp + 0xb5c]
push eax
call edi
push str.7k7k
sub esp, 0xc
lea ecx, [esp + 0xb68]
lea edx, [esp + 0x758]
test bl, bl
jne 0x4028d8
lea edx, [esp + 0x1388]
call fcn.00401770
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0xb68]
add esp, 0x10
push 0x7ab5e8
push eax
push str.StartMenuPath
push str.config
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x1588], ax
lea eax, [esp + 0x158a]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x1584]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0x1580]
push str.WeiDuanN_
push eax
call edi
push str.unins000.exe
lea eax, [esp + 0x1584]
push eax
call edi
lea edx, [esp + 0x1580]
lea ecx, [esp + 0xb58]
test bl, bl
je 0x402b50
push 0x422978
sub esp, 0xc
call fcn.00401770
add esp, 0x10
mov dword [esp + 0x270], 0x4f0053
lea eax, [esp + 0xc]
mov dword [esp + 0x274], 0x540046
mov dword [esp + 0x278], 0x410057
mov dword [esp + 0x27c], 0x450052
push eax
push 2
push 0
lea eax, [esp + 0x27c]
mov dword [esp + 0x28c], 0x4d005c
push eax
push 0x80000002
mov dword [esp + 0x298], 0x630069
mov dword [esp + 0x29c], 0x6f0072
mov dword [esp + 0x2a0], 0x6f0073
mov dword [esp + 0x2a4], 0x740066
mov dword [esp + 0x2a8], 0x57005c
mov dword [esp + 0x2ac], 0x6e0069
mov dword [esp + 0x2b0], 0x6f0064
mov dword [esp + 0x2b4], 0x730077
mov dword [esp + 0x2b8], 0x43005c
mov dword [esp + 0x2bc], 0x720075
mov dword [esp + 0x2c0], 0x650072
mov dword [esp + 0x2c4], 0x74006e
mov dword [esp + 0x2c8], 0x650056
mov dword [esp + 0x2cc], 0x730072
mov dword [esp + 0x2d0], 0x6f0069
mov dword [esp + 0x2d4], 0x5c006e
mov dword [esp + 0x2d8], 0x750052
mov dword [esp + 0x2dc], 0x6e
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402b60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x254], eax
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x74c]
mov dword [esp + 0x260], 0x2f0020
push eax
mov dword [esp + 0x268], 0x750061
mov dword [esp + 0x26c], 0x6f0074
mov dword [esp + 0x270], 0x750072
mov dword [esp + 0x274], 0x6e
call edi
lea ecx, [esp + 0x748]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b07
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x74c]
push eax
push 1
push 0
push str.7k7kLegend
push dword [esp + 0x268]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x254]
test eax, eax
je 0x402b60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402b60
push 0x422980
sub esp, 0xc
call fcn.00401770
add esp, 0x10
xor eax, eax
push 0x206
push eax
mov word [esp + 0xf70], ax
lea eax, [esp + 0xf72]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0xf6c]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0xf68]
test bl, bl
je 0x402bc5
push str.WeiDuanS_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [esp + 0xd60]
push eax
jmp 0x402bdd
push str.WeiDuanN_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
push 0x42292c
lea eax, [esp + 0xf6c]
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea ecx, [esp + 0xf68]
sub esp, 8
call fcn.00401f30
add esp, 8
push 0x7ab5e8
test bl, bl
je 0x402d51
push 0x4229a0
push 0x4229a4
push str.config
call esi
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x1174]
push 0x104
push eax
call fcn.00409a8d
add esp, 0xc
lea eax, [esp + 0x1170]
push str.WeiDuanS_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [esp + 0xd60]
push eax
lea eax, [esp + 0x1174]
push 0x104
push eax
call fcn.00409a21
xor eax, eax
mov dword [esp + 0x268], 0x2f0020
add esp, 0xc
mov word [esp + 0x26c], ax
lea eax, [esp + 0x25c]
mov dword [esp + 0x260], 0x6e0069
mov ecx, 0x69
mov dword [esp + 0x264], 0x740069
mov dword [esp + 0x268], 0x630061
push eax
lea eax, [esp + 0x1174]
push 0x104
push eax
call fcn.00409a21
add esp, 8
lea edx, [esp + 0x1174]
push 0
call fcn.00401920
add esp, 8
lea eax, [esp + 0xd60]
push 0x7ab5e8
push eax
push 0x4229c4
push str.config
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x340], ax
lea eax, [esp + 0x342]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [esp + 0x540]
push eax
lea eax, [esp + 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.WeiDuanS_
lea eax, [esp + 0x33c]
push eax
call edi
push 0x7ab5e8
lea eax, [esp + 0x33c]
push eax
push str.InstallPathS
jmp 0x402d5b
push 0x4229c0
push 0x4229a4
push str.config
call esi
push 0x7ab5e8
push 0x42292c
push str.REName
push str.config
call esi
push 0x7ab5e8
lea eax, [esp + 0x178c]
push eax
push str.InstallName
push str.config
call esi
push 0x7ab5e8
lea eax, [esp + 0x544]
push eax
push str.InstallPath
push str.config
call esi
test bl, bl
je 0x402dc2
sub esp, 8
call fcn.004078a0
add esp, 4
lea edx, [esp + 0x74c]
jmp 0x402dca
push ecx
lea edx, [esp + 0x137c]
push 5
call fcn.00401920
add esp, 8
mov ecx, dword [esp + 0x1994]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409948
mov esp, ebp
pop ebp
ret 0x10