Function at 0x40b870
Capabilities:
Copy file
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4885c6
mov eax, dword fs:[0]
push eax
mov eax, 0x18c8
call fcn.00469220
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.00466190
add esp, 0xc
lea ecx, [ebp - 0x1050]
call fcn.0040be50
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.00466190
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00466190
add esp, 0xc
lea edx, [ebp - 0x218]
call fcn.0040d790
push str..exe
push str.xunjieaixiezuo_uninst_worker
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0xe48]
push 0x104
push eax
call fcn.00473463
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00466190
add esp, 0x24
lea ecx, [ebp - 0xc40]
call fcn.0040bda0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00466190
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00466190
add esp, 0xc
lea edx, [ebp - 0x218]
call fcn.0040d790
push str..exe
push str.xunjieaixiezuo_inst
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00473463
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xa38]
add esp, 0x18
push 0
push eax
lea eax, [ebp - 0xc40]
push eax
call edi
push 0
lea eax, [ebp - 0xe48]
push eax
lea eax, [ebp - 0x1050]
push eax
call edi
push 0x208
push 0
test eax, eax
je 0x40bbfb
lea eax, [ebp - 0x1460]
push eax
call fcn.00466190
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1460]
add esp, 0xc
push 0x104
push eax
push 0
call esi
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0
call esi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00466190
add esp, 0xc
lea eax, [ebp - 0x1258]
push 0x208
push 0
push eax
call fcn.00466190
add esp, 0xc
lea edx, [ebp - 0x1258]
call fcn.0040d790
push str..exe
push str.xunjieaixiezuo_un_asa
lea eax, [ebp - 0x1258]
push eax
push 0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00473463
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00466190
add esp, 0x24
lea edx, [ebp - 0x420]
call fcn.0040d790
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1460]
push eax
call edi
test eax, eax
je 0x40bd83
push str._instdir
lea ecx, [ebp - 0x18b8]
call fcn.00402460
mov dword [ebp - 4], 0
mov esi, 0x4b44a8
cmp dword [0x4b44bc], 8
mov ecx, eax
push 1
cmovae esi, dword [0x4b44a8]
push 0x4a737c
call fcn.00401d70
cmp word [ebp - 0x628], 0
mov edi, eax
jne 0x40baf5
xor ecx, ecx
jmp 0x40bb0f
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
call fcn.00401d70
push 2
push 0x4a7380
mov ecx, eax
call fcn.00401d70
cmp word [esi], 0
mov edi, eax
jne 0x40bb38
xor ecx, ecx
jmp 0x40bb4f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb40
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00401d70
xor ecx, ecx
mov dword [ebp - 0x1874], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x1888], cx
lea ecx, [ebp - 0x1888]
push eax
mov dword [ebp - 0x1878], 0
call fcn.00401fb0
mov eax, dword [ebp - 0x18a4]
cmp eax, 8
jb 0x40bba2
inc eax
lea ecx, [ebp - 0x18b8]
push eax
push dword [ebp - 0x18b8]
call fcn.004024c0
cmp dword [ebp - 0x1874], 8
lea ecx, [ebp - 0x420]
push 1
push ecx
lea eax, [ebp - 0x1888]
cmovae eax, dword [ebp - 0x1888]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x1874]
cmp eax, 8
jb 0x40bd83
inc eax
lea ecx, [ebp - 0x1888]
push eax
push dword [ebp - 0x1888]
call fcn.004024c0
jmp 0x40bd83
lea eax, [ebp - 0x1668]
push eax
call fcn.00466190
add esp, 0xc
lea eax, [ebp - 0x1668]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00466190
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.00466190
add esp, 0xc
lea edx, [ebp - 0x420]
call fcn.0040d790
push str..exe
push str.xunjieaixiezuo_un_asa
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00473463
push 0x208
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.00466190
add esp, 0x24
lea edx, [ebp - 0x1870]
call fcn.0040d790
push 1
push 0x4a6cf4
push 0x4a7388
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x40bcba
push 0xffffffffffffffff
call fcn.004738be
push 0
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1668]
push eax
call edi
test eax, eax
je 0x40bd83
push str._instdir
lea ecx, [ebp - 0x18d0]
call fcn.00402460
push 0x4a737c
push str.Test
push 0x4a737c
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00401ea0
mov ecx, eax
call fcn.00401ea0
mov ecx, eax
call fcn.00401ea0
xor ecx, ecx
mov dword [ebp - 0x188c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x18a0], cx
lea ecx, [ebp - 0x18a0]
push eax
mov dword [ebp - 0x1890], 0
call fcn.00401fb0
lea ecx, [ebp - 0x18d0]
call fcn.00402590
cmp dword [ebp - 0x188c], 8
lea ecx, [ebp - 0x1870]
push 1
push ecx
lea eax, [ebp - 0x18a0]
cmovae eax, dword [ebp - 0x18a0]
push eax
lea eax, [ebp - 0x830]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18a0]
call fcn.00402590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret