Function at 0x418b20
Capabilities:
Check if file exists
Check os version
Create directory
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4714b0
mov eax, dword fs:[0]
push eax
sub esp, 0x978
mov eax, dword [0x48e110]
xor eax, esp
mov dword [esp + 0x970], eax
push ebx
push esi
push edi
mov eax, dword [0x48e110]
xor eax, esp
push eax
lea eax, [esp + 0x988]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
add esi, 0x44
lea eax, [esp + 0x28]
push esi
push eax
mov ebx, 0x478020
mov dword [esp + 0x24], esi
call fcn.00402c10
lea ecx, [esp + 0x3c]
push esi
push ecx
mov ebx, 0x4784ec
mov dword [esp + 0x9a0], 0
call fcn.00402c10
mov byte [esp + 0x9a0], 1
mov eax, dword [esi]
push 0x5c
push eax
call fcn.0045ac03
add esp, 0x18
test eax, eax
jne 0x418bb6
or eax, 0xffffffff
jmp 0x418bba
sub eax, dword [esi]
sar eax, 1
lea ecx, [esp + 0x20]
mov edx, esi
call fcn.00403ce0
lea edx, [esp + 0x24]
push edx
mov ecx, 0x478504
mov byte [esp + 0x994], 2
call fcn.00403080
lea eax, [esp + 0x30]
push eax
mov ecx, 0x478518
mov byte [esp + 0x994], 3
call fcn.00403080
push 1
push 0x10
lea ecx, [esp + 0x77c]
push ecx
mov byte [esp + 0x99c], 4
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
call edi
push 1
push 0x1a
lea edx, [esp + 0x164]
push edx
push 0
call edi
test eax, eax
je 0x418c52
lea edi, [esp + 0x15c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418c30
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
push 0x17
lea eax, [esp + 0x36c]
push eax
push 0
call edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x368]
call fcn.00403080
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x478530
mov byte [esp + 0x998], 5
call fcn.00402c10
add esp, 8
mov byte [esp + 0x990], 6
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x418cf3
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x418ce5
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x418ce5
call fcn.004033b0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x418cd8
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x418cf3
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004032a0
mov byte [esp + 0x990], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418d1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x47853c
call fcn.00402c10
add esp, 8
mov byte [esp + 0x990], 7
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x418da0
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x418d92
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x418d92
call fcn.004033b0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x418d85
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x418da0
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004032a0
mov byte [esp + 0x990], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418dc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp + 0x38]
push edx
mov ecx, 0x47854c
call fcn.00403080
lea eax, [esp + 0x3c]
push esi
push eax
mov ebx, 0x478064
mov byte [esp + 0x998], 8
call fcn.00402c10
add esp, 8
push 0
mov byte [esp + 0x994], 9
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0x64], 0
je 0x418ea0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 5
push 1
push str._Run_d__From_d
lea edi, [esp + 0x20]
mov byte [esp + 0x99c], 0xa
call fcn.00413e20
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
add esp, 0xc
push 0
push ecx
push edx
mov edx, esi
mov ecx, 0x478590
call fcn.00427d20
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x990], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
push str.Baofeng.BFVCenter.WIN7APPID
push ecx
push edx
mov edx, str._startmenu
mov ecx, 0x478084
call fcn.00427d20
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
add esp, 0xc
push 0
push eax
push ecx
xor edx, edx
mov ecx, 0x4785f8
call fcn.00427d20
add esp, 0xc
cmp dword [esi + 0x64], 0
je 0x418fe4
push 1
push 0x10
lea edx, [esp + 0x574]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x570]
call fcn.00403080
push 0xb
push 0x47860c
lea ebx, [esp + 0x1c]
mov byte [esp + 0x998], 0xb
call fcn.00402d70
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418f54
cmp dword [esi + 0x6c], eax
je 0x418f4a
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push SysReAllocStringLen
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x418fba
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x48], 6
jb 0x418fb3
mov dword [esp + 0x40], vtable.CAccessRight.0
mov esi, ebx
mov byte [esp + 0x990], 0xc
call fcn.00401980
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x990], 9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419010
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419010
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
push str.Baofeng.BFVCenter.WIN7APPID
push ecx
lea edx, [esp + 0x77c]
push edx
mov edx, str._desktop
mov ecx, 0x478084
call fcn.00427d20
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
push str.Baofeng.BFVCenter.WIN7APPID
push eax
lea ecx, [esp + 0x164]
push ecx
mov edx, str._taskbar
xor ecx, ecx
call fcn.00427d20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [esp + 0x44]
mov ebx, 0x114
push edx
mov dword [esp + 0x48], ebx
call esi
mov edi, 6
cmp dword [esp + 0x48], edi
jne 0x419061
cmp dword [esp + 0x4c], 1
je 0x419081
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], ebx
call esi
cmp dword [esp + 0x48], edi
jne 0x4191a8
cmp dword [esp + 0x4c], 2
jne 0x4191a8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x160]
call fcn.00403080
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
mov ebx, 0x4768bc
mov byte [esp + 0x998], 0xd
call fcn.00402c10
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, eax
mov byte [esp + 0x9a0], 0xe
call fcn.00402b60
add esp, 0x10
lea edi, [esp + 0x14]
mov byte [esp + 0x990], 0xf
call fcn.00402ab0
mov byte [esp + 0x990], 0xe
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419103
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 0xd
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41912b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push ecx
push str.taskbarpin
push 0
call edi
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x78], 0
je 0x419180
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x114
call esi
cmp dword [esp + 0x48], 6
jne 0x419180
cmp dword [esp + 0x4c], 1
jne 0x419180
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push ecx
push str.startpin
push 0
call edi
mov byte [esp + 0x990], 9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4191a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x990], 8
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4191d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 5
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4191fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41924e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41929e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x990], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4192c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x990], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4192f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x988]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x970]
xor ecx, esp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret