Function at 0x4071fa
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x407751
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x210]
push eax
call edi
xor ebx, ebx
cmp byte [ebp + eax - 0x211], 0x5c
jne 0x40724c
lea eax, [ebp - 0x210]
push eax
call edi
mov byte [ebp + eax - 0x211], bl
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._s_isdelet.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x314]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a66
lea eax, [ebp - 0x314]
mov edi, 0x412314
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], 0x41231c
call fcn.00403a6c
push dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x90]
mov esi, 0x412310
push dword [ebp + 0x14]
mov dword [ebp - 0x90], esi
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
call fcn.00407145
add esp, 0x24
test al, al
je 0x407516
cmp dword [ebp + 0x14], ebx
jne 0x4072f3
mov dword [ebp + 0x10], ebx
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x90]
push eax
call fcn.0040c6b9
push ebx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], 0x41231c
call fcn.00403adb
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x74], esi
call fcn.00401b39
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0x41231c
call fcn.00401a66
lea eax, [ebp - 0x74]
mov dword [ebp - 0x3c], esi
push eax
lea eax, [ebp - 0xbc]
push ebx
push eax
call fcn.00403ff1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404ce8
add esp, 0xc
lea ecx, [ebp - 0x3c]
push eax
call fcn.004045e8
lea ecx, [ebp - 0x58]
call fcn.00401b39
lea ecx, [ebp - 0xbc]
call fcn.00401b39
lea ecx, [ebp - 0x3c]
call fcn.00401f9d
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x90]
call fcn.00401f9d
push ebx
push esi
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea ecx, [ebp - 0x3c]
jne 0x4073be
call fcn.00401b39
lea ecx, [ebp - 0x74]
call fcn.00401b39
lea ecx, [ebp - 4]
call fcn.0040ba4e
jmp 0x40773e
call fcn.00401f9d
push ebx
push 0x4000000
push 3
push ebx
push 1
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x4073ea
lea ecx, [ebp - 4]
call fcn.0040ba4e
mov dword [ebp - 4], esi
lea eax, [ebp + 0x14]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040b5c8
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [eax]
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
call esi
mov edi, dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
push 1
push 0x414604
lea ecx, [ebp - 0x58]
call fcn.00403a00
mov edi, dword [ebp - 0x48]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
push 0x414600
lea ecx, [ebp - 0x20]
call fcn.0040b70d
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040b70d
push 1
push str.__your_launcher
lea ecx, [ebp - 0x58]
call fcn.00403a00
mov edi, dword [ebp - 0x48]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
mov edi, dword [ebp - 0x64]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
push 1
push 0x4145bc
lea ecx, [ebp - 0x58]
call fcn.00403a00
mov edi, dword [ebp - 0x48]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x90]
push eax
call fcn.004042cb
mov edi, dword [eax + 0x10]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0xc8]
call fcn.00401b39
push 0x4145b8
lea ecx, [ebp - 0x20]
call fcn.0040b70d
lea ecx, [ebp - 0x3c]
call fcn.00401b39
lea ecx, [ebp - 0x74]
call fcn.00401b39
mov esi, 0x412310
jmp 0x407575
mov eax, dword [ebp - 0x80]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov dword [ebp + 0x14], eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.004014e5
push 1
push 0x414604
lea ecx, [ebp - 0x58]
call fcn.00403a00
mov eax, dword [ebp - 0x48]
push eax
mov dword [ebp + 0x14], eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
push 0x414600
lea ecx, [ebp - 0x20]
call fcn.0040b70d
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040b70d
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10c], 0x44
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call fcn.00401f9d
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407720
mov eax, dword [ebp - 0xa0]
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], eax
je 0x407704
push 0x40
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x40760d
cmp eax, 1
je 0x40760d
push 1
push ebx
push ebx
lea eax, [ebp - 0xbc]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0xb8], 0x16
jne 0x4075d8
cmp dword [ebp + 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4076c5
lea eax, [ebp - 0x620]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x620]
push ebx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], 0x412314
mov dword [ebp - 0x60], 0x41231c
call fcn.00403a6c
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
call fcn.0040c6b9
mov esi, eax
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0xc8]
call fcn.00401b39
lea ecx, [ebp - 0x74]
call fcn.00401b39
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x51c]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, ebx
je 0x4076c5
push esi
call edi
lea eax, [ebp - 0x418]
push eax
call fcn.00406c1d
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.00407c1c
cmp dword [ebp - 4], 0xffffffff
je 0x4076ec
push dword [ebp - 4]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00401b39
lea ecx, [ebp - 0x20]
call fcn.00401b39
push 1
pop eax
jmp 0x407753
lea ecx, [ebp - 0xa0]
call fcn.00407c1c
cmp dword [ebp - 4], 0xffffffff
je 0x4076ec
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4076e8
lea ecx, [ebp - 0xa0]
call fcn.00407c1c
cmp dword [ebp - 4], 0xffffffff
je 0x40773e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00401b39
lea ecx, [ebp - 0x20]
call fcn.00401b39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret