Function at 0x404680
Capabilities:
Copy file
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x71c
mov eax, dword [0x417050]
xor eax, esp
mov dword [esp + 0x718], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov dword [esp + 0x1c], eax
mov dword [0x418e38], eax
call edi
test eax, eax
je 0x4046fe
push esi
call edi
cmp eax, 2
jl 0x4046fe
push 3
push esi
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x414f00
lea ecx, [esp + 0x80]
push ecx
call edi
test eax, eax
je 0x404767
push 0x414f04
lea edx, [esp + 0x80]
push edx
call edi
test eax, eax
je 0x404748
mov eax, dword [0x418e38]
push 0x100
push 0x418c28
push 5
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x2034
push 0x414e74
push 0x418c28
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x404ab4
push 1
push str.control.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x404ab4
lea ecx, [esi + 2]
call fcn.00401f80
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.004052f5
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404e10
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x404783
lea ecx, [eax + 1]
call fcn.00404db0
jmp 0x404ab4
lea ecx, [esp + 0x618]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404858
lea edx, [esp + 0x618]
push edx
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + 0xf0]
call fcn.00404d50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x8c]
push 0x414f14
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
push str.___epuninst
mov edx, edi
push edx
call ebx
lea eax, [esp + 0x88]
push eax
mov ecx, edi
push ecx
call ebx
push str..ini
mov edx, edi
push edx
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
xor ecx, ecx
test edi, edi
mov dword [esp + 0x1c], edi
jle 0x404826
mov al, byte [ecx + esi]
not al
mov byte [ecx + esi], al
add ecx, 1
cmp ecx, edi
jl 0x404817
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404867
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, 2
call fcn.00404db0
jmp 0x404ab4
mov ecx, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x40c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str._General__r_nUninstFile
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea edx, [esp + 0x94]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x414]
push edx
push esi
call edi
push 0x414bc0
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x94]
push eax
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x8c]
push str.UninstSrcProcess_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x94]
push ecx
push esi
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [esp + 0x510]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x510]
push ecx
lea edx, [esp + 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + 0x1f8]
call fcn.00404d50
push str.epuninst.bin
mov eax, edi
push eax
call ebx
push 0
mov ecx, edi
push ecx
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x414f64
lea eax, [esp + 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, edi
push ecx
lea edx, [esp + 0x304]
push edx
call ebx
push 0x414f68
lea eax, [esp + 0x304]
push eax
call ebx
push 0x414f04
lea ecx, [esp + 0x304]
push ecx
call ebx
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0x304]
push eax
call ebx
push str.EXEpressUninstallSyncEvent
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x44
lea ecx, [esp + 0x34]
push 0
push ecx
mov edi, eax
call fcn.00409ae0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x518]
push ecx
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x320]
push edx
lea eax, [esp + 0x21c]
push eax
mov dword [esp + 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404aa7
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x404ab1
mov ecx, 3
call fcn.00404db0
push edi
call esi
mov ecx, dword [esp + 0x724]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004052f5
mov esp, ebp
pop ebp
ret 0x10