Function at 0x4023a0
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path
Read .ini file

Disassembly:
sub esp, 0xa48
mov eax, dword [0x410070]
push ebx
push ebp
mov ebp, dword [esp + 0xa54]
push esi
mov esi, dword [esp + 0xa5c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x103
mov dword [esp + 0xa5c], eax
lea eax, [esp + 0x444]
push eax
push 0x40d781
push str.filename
xor ebx, ebx
push ebp
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x454], bl
call edi
cmp eax, ebx
je 0x4027af
cmp eax, 0x103
ja 0x4027af
cmp byte [esp + 0x43c], bl
je 0x4027af
push esi
push 0x103
lea ecx, [esp + 0x958]
push ecx
push str.1_0_0_1
push str.version
push ebp
mov byte [esp + 0x968], bl
call edi
cmp eax, ebx
je 0x4027af
cmp eax, 0x103
ja 0x4027af
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x950]
push edx
call fcn.00401800
push esi
push 8
push str.operation
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4027af
push esi
push 0x103
lea eax, [esp + 0x750]
push eax
push 0x40d781
push 0x40d758
push ebp
mov byte [esp + 0x760], bl
call edi
cmp eax, ebx
je 0x4027af
cmp eax, 0x103
ja 0x4027af
cmp byte [esp + 0x748], bl
je 0x4027af
push esi
push 0x103
lea ecx, [esp + 0x548]
push ecx
push 0x40d781
push str.dest
push ebp
mov byte [esp + 0x558], bl
call edi
cmp eax, ebx
je 0x4027af
cmp eax, 0x103
ja 0x4027af
cmp byte [esp + 0x540], bl
je 0x4027af
push esi
push ebx
push 0x40d74c
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4027af
mov edi, str.cf
lea esi, [esp + 0x540]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x338], bl
jne 0x4027ab
push 1
push 0x2b
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4027af
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.BaiduBaiduX_
lea ecx, [esp + 0x30]
push ecx
call esi
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
call fcn.00401860
add esp, 4
push 0x104
lea edx, [esp + 0x33c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x338]
push 0x5c
push eax
call fcn.004039a0
add esp, 8
cmp eax, ebx
je 0x4025a9
mov byte [eax], bl
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401730
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x20]
jb 0x4025f5
ja 0x4025df
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jb 0x4025f5
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0040394b
add esp, 8
test eax, eax
je 0x4027ab
push 0x103
lea ecx, [esp + 0x33c]
push ecx
lea edx, [esp + 0x854]
push edx
call fcn.004033a0
add esp, 0xc
push 0x40d6a4
lea eax, [esp + 0x850]
push eax
call esi
push ebp
lea ecx, [esp + 0x850]
push ecx
call esi
push 0x103
lea edx, [esp + 0x33c]
push edx
lea eax, [esp + 0x23c]
push eax
call fcn.004033a0
add esp, 0xc
push str.update_
lea ecx, [esp + 0x238]
push ecx
call esi
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x238]
push eax
call esi
lea ecx, [esp + 0x234]
push ebx
push ecx
call fcn.0040394b
add esp, 8
test eax, eax
jne 0x4027af
test byte [esp + 0x10], 8
je 0x4027af
push ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4027ab
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [esp + 0x10]
test al, 4
je 0x402770
push 0x104
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0xc8
jge 0x4027ab
cmp eax, ebx
jle 0x4027ab
cmp byte [esp + eax + 0x12f], 0x5c
jne 0x402703
push str.regsvr32.exe
lea eax, [esp + 0x134]
push eax
jmp 0x402710
push str._regsvr32.exe
lea ecx, [esp + 0x134]
push ecx
call esi
lea edx, [esp + 0x130]
push ebx
push edx
call fcn.0040394b
add esp, 8
cmp eax, 0xffffffff
je 0x4027af
lea eax, [esp + 0x2c]
push eax
push str.__s_
lea ecx, [esp + 0x64c]
push 0x103
push ecx
call fcn.00403348
push ebx
lea edx, [esp + 0x658]
push edx
push 0x40d6bc
push str.regsvr32
lea eax, [esp + 0x150]
push eax
push ebx
call fcn.00403933
add esp, 0x28
xor eax, eax
jmp 0x4027b2
test al, 2
je 0x4027ab
lea ecx, [esp + 0x2c]
push ecx
push str.__s_
lea edx, [esp + 0x64c]
push 0x103
push edx
call fcn.00403348
add esp, 0x10
push 5
push ebx
push ebx
lea eax, [esp + 0x650]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x4027b2
or eax, 0xffffffff
mov ecx, dword [esp + 0xa54]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040333a
add esp, 0xa48
ret 8