Function at 0x401000
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Get file attributes
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9d55
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x9b4
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov word [ebp - 0x260], ax
push 0x206
push 0
lea ecx, [ebp - 0x25e]
push ecx
call fcn.004a8470
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x260]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x260]
add eax, 0xfffffffe
mov dword [ebp - 0x9a0], eax
mov ecx, dword [ebp - 0x9a0]
mov dx, word [ecx + 2]
mov word [ebp - 0x9a2], dx
add dword [ebp - 0x9a0], 2
cmp word [ebp - 0x9a2], 0
jne 0x401073
mov edi, dword [ebp - 0x9a0]
mov eax, dword [str.OKJsq]
mov dword [edi], eax
mov ecx, dword [0x4e00ac]
mov dword [edi + 4], ecx
mov edx, dword [0x4e00b0]
mov dword [edi + 8], edx
mov ax, word [0x4e00b4]
mov word [edi + 0xc], ax
push 0
lea ecx, [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x260]
push edx
mov ecx, 0x4f0a50
call fcn.00401900
push 0x4f0a50
lea ecx, [ebp - 0x27c]
call fcn.00401880
mov dword [ebp - 4], 0
push str.log_install.log
lea ecx, [ebp - 0x27c]
call fcn.00401920
push 0x400
lea eax, [ebp - 0x27c]
push eax
mov ecx, 0x4f0a0c
call fcn.00411e00
lea ecx, [ebp - 0x27c]
call fcn.00402c10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0xffffffff
je 0x401159
mov ecx, dword [ebp - 0x280]
and ecx, 0x10
je 0x401159
lea ecx, [ebp - 0x27c]
call fcn.00402c10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.004018c0
push 0
lea edx, [ebp - 0x83c]
push edx
call fcn.00410d40
add esp, 8
mov dword [ebp - 0x9a8], eax
mov eax, dword [ebp - 0x9a8]
mov dword [ebp - 0x9ac], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x9ac]
push ecx
mov ecx, 0x4f0a34
call fcn.004018e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x83c]
call fcn.004018c0
mov byte [ebp - 0x11], 0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x9b0], edx
mov eax, dword [ebp - 0x9b0]
add eax, 1
mov dword [ebp - 0x9b4], eax
mov ecx, dword [ebp - 0x9b0]
mov dl, byte [ecx]
mov byte [ebp - 0x9b5], dl
add dword [ebp - 0x9b0], 1
cmp byte [ebp - 0x9b5], 0
jne 0x4011d4
mov eax, dword [ebp - 0x9b0]
sub eax, dword [ebp - 0x9b4]
mov dword [ebp - 0x9bc], eax
je 0x40120a
mov byte [ebp - 0x11], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x401222
xor eax, eax
jmp 0x4017ec
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041cba0
add esp, 4
push str.ZIPRES
push 0x66
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x401251
xor eax, eax
jmp 0x4017ec
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x50]
push edx
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x401282
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4017ec
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4012a2
xor eax, eax
jmp 0x4017ec
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041bd2c
add esp, 4
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x840]
mov dword [0x4f09ac], eax
cmp dword [0x4f09ac], 0
je 0x4012e5
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [0x4f09ac]
push eax
call fcn.004a85b0
add esp, 0xc
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.opZZvX9f
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [0x4f09ac]
push eax
call fcn.0041cbb0
add esp, 0xc
mov byte [ebp - 0x45], 0
push 0x4e00f8
lea ecx, [ebp - 0x44]
call fcn.00401840
mov dword [ebp - 4], 2
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.00410fd0
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
je 0x401339
mov byte [ebp - 0x45], 1
movzx edx, byte [ebp - 0x45]
test edx, edx
je 0x40160d
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x401589
push 0x4e0110
lea ecx, [ebp - 0x85c]
call fcn.00401840
mov byte [ebp - 4], 3
push 0x4e0118
lea ecx, [ebp - 0x878]
call fcn.00401840
mov byte [ebp - 4], 4
push 0x4e0120
lea ecx, [ebp - 0x894]
call fcn.00401840
mov byte [ebp - 4], 5
push 0x4e0144
lea ecx, [ebp - 0x8b0]
call fcn.00401840
mov byte [ebp - 4], 6
push 0xb4
push 0x12c
lea ecx, [ebp - 0x85c]
push ecx
lea edx, [ebp - 0x878]
push edx
push 2
push 1
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0x8b0]
push ecx
push 0
call fcn.0040da20
add esp, 0x24
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8b0]
call fcn.004018c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x894]
call fcn.004018c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x878]
call fcn.004018c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x85c]
call fcn.004018c0
cmp dword [ebp - 0x288], 0
jne 0x401428
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x281]
call fcn.00401b30
mov byte [ebp - 4], 7
push str.openvpn.exe
lea ecx, [ebp - 0x8cc]
call fcn.00401840
mov byte [ebp - 4], 8
lea edx, [ebp - 0x8cc]
push edx
lea ecx, [ebp - 0x281]
call fcn.00410500
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8cc]
call fcn.004018c0
push str.local333.exe
lea ecx, [ebp - 0x8e8]
call fcn.00401840
mov byte [ebp - 4], 9
lea eax, [ebp - 0x8e8]
push eax
lea ecx, [ebp - 0x281]
call fcn.00410500
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8e8]
call fcn.004018c0
push str.local256.exe
lea ecx, [ebp - 0x904]
call fcn.00401840
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x904]
push ecx
lea ecx, [ebp - 0x281]
call fcn.00410500
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x904]
call fcn.004018c0
push str.local335.exe
lea ecx, [ebp - 0x920]
call fcn.00401840
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x920]
push edx
lea ecx, [ebp - 0x281]
call fcn.00410500
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x920]
call fcn.004018c0
push str.ok.exe
lea ecx, [ebp - 0x93c]
call fcn.00401840
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x93c]
push eax
lea ecx, [ebp - 0x281]
call fcn.00410500
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x93c]
call fcn.004018c0
push str.okjiasu.exe
lea ecx, [ebp - 0x958]
call fcn.00401840
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x958]
push ecx
lea ecx, [ebp - 0x281]
call fcn.00410500
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x958]
call fcn.004018c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x281]
call fcn.004104f0
jmp 0x40160d
push 0x4e01f0
push 0x4e01fc
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x40160d
push 9
mov edx, dword [ebp - 0x28c]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28c]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov ecx, dword [ebp - 0x28c]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x95c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004018c0
mov eax, dword [ebp - 0x95c]
jmp 0x4017ec
push str.Global_ONCE_RUN_okJiasuqi_install_
lea ecx, [ebp - 0x978]
call fcn.00402ba0
lea edx, [ebp - 0x978]
push edx
lea ecx, [ebp - 0x24]
call fcn.0040e000
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x978]
call fcn.00402350
lea ecx, [ebp - 0x24]
call fcn.0040e080
test eax, eax
je 0x4016e7
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x4016e7
push 0x4e0234
push 0x4e024c
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
je 0x4016e7
push 9
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x97c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0040e050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004018c0
mov eax, dword [ebp - 0x97c]
jmp 0x4017ec
mov byte [ebp - 4], 0xf
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x401756
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x820]
call fcn.00402c40
mov dword [ebp - 0x9c0], eax
mov byte [ebp - 4], 0x10
push 0
push 0
push 0
push 0
push 0
push 0
push 0x16000000
push 0x4e0260
push 0
lea ecx, [ebp - 0x820]
call fcn.00426cf0
lea ecx, [ebp - 0x820]
call fcn.004270e0
lea ecx, [ebp - 0x820]
call fcn.00426e60
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x820]
call fcn.00402d70
jmp 0x401791
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x998]
call fcn.00402ba0
mov dword [ebp - 0x9c4], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x998]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406fe0
add esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x998]
call fcn.00402350
jmp 0x4017b4
mov dword [ebp - 4], 0xe
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0x99c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0040e050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004018c0
mov eax, dword [ebp - 0x99c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret 0x10