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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc74
mov eax, dword [0x438c20]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x872]
push ecx
mov dword [esp + 0x18], 0
mov word [esp + 0x874], ax
call fcn.0041a170
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x462]
push eax
mov word [esp + 0x464], dx
call fcn.0041a170
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa7a]
push edx
mov word [esp + 0xa7c], cx
call fcn.0041a170
add esp, 0xc
lea eax, [ebx + 0x5ac]
push eax
lea eax, [esp + 0xa74]
push 0x104
push eax
call fcn.0041847e
add esp, 0xc
push 0x434090
lea ecx, [esp + 0xa74]
push 0x104
push ecx
call fcn.00417d54
add esp, 0xc
lea edx, [esp + 0xa70]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x200
lea eax, [esp + 0x254]
push 0
push eax
call fcn.0041a170
add esp, 0xc
push 1
push ebx
mov esi, 0x433f8c
lea edi, [esp + 0x258]
call fcn.004010f0
test eax, eax
je 0x401934
xor eax, eax
mov cl, byte [esp + eax + 0x250]
not cl
mov byte [esp + eax + 0x250], cl
inc eax
cmp eax, 0x200
jb 0x401690
cmp dword [esp + 0x250], 0x504d534d
jne 0x401934
lea eax, [ebx + 0x5ac]
push eax
lea edx, [esp + 0x86c]
push 0x104
lea edi, [ebx + 4]
mov ecx, 0x80
lea esi, [esp + 0x258]
push edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], 1
call fcn.0041847e
add esp, 0xc
lea eax, [ebx + 0x18c]
push eax
lea eax, [esp + 0x86c]
push 0x104
push eax
call fcn.00417d54
add esp, 0xc
push 0x4340a8
lea ecx, [esp + 0x86c]
push 0x104
push ecx
call fcn.00417d54
add esp, 0xc
lea edx, [esp + 0x868]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebx + 0x1ac]
push esi
lea eax, [ebx + 0x58c]
push 0x10
push eax
call fcn.0041847e
add esp, 0xc
push ebx
lea edi, [esp + 0x45c]
call fcn.004013b0
mov ecx, esi
mov edx, ebx
call fcn.00401e30
cmp eax, 1
je 0x401e0c
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x25a]
push edx
mov word [esp + 0x25c], cx
call fcn.0041a170
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.0041a170
lea edx, [esp + 0x25c]
add esp, 0xc
mov eax, esi
sub edx, esi
mov edi, edi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4017b0
lea edx, [esp + 0x18]
mov eax, esi
sub edx, esi
jmp 0x4017d0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4017d0
lea eax, [esp + 0x18]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4017e6
mov edx, dword [0x4340b4]
mov ecx, dword [0x4340b8]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [eax], edx
mov edx, dword [0x4340bc]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x250]
push eax
push 0
push 0x20000
call edi
test eax, eax
je 0x401882
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esp + 0x250]
push edx
xor esi, esi
push esi
push 0x20000
call edi
test eax, eax
je 0x401882
cmp esi, 5
jge 0x401882
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x250]
push eax
push 0
push 0x20000
call edi
test eax, eax
jne 0x401855
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x458]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx + 8]
lea edx, [ebx + 0x488]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4018a6
lea eax, [ebx + 0x8a]
lea edx, [ebx + 0x408]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4018c3
lea eax, [ebx + 0xaa]
lea edx, [ebx + 0x50a]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4018e0
mov ax, word [ebx + 0x12a]
mov dx, word [ebx + 0x88]
mov ecx, dword [ebx + 0x1cc]
mov word [ebx + 0x58a], ax
lea eax, [ebx + 0x18c]
push eax
mov word [ebx + 0x508], dx
lea edx, [ebx + 0x9bc]
push 0x10
push edx
mov dword [ebx + 0x404], ecx
call fcn.0041847e
add esp, 0xc
jmp 0x4019f8
push 0x236
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.0041a170
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
call fcn.00403190
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4019f8
lea eax, [esp + 0x126]
lea edx, [ebx + 0x408]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401980
mov dx, word [esp + 0x122]
mov ecx, dword [esp + 0x11e]
mov ax, word [esp + 0x11c]
mov word [ebx + 0x508], dx
push ecx
lea edx, [ebx + 0x488]
push edx
mov word [ebx + 0x58a], ax
call fcn.00403660
mov eax, dword [esp + 0x120]
push eax
lea ecx, [ebx + 0x50a]
push ecx
call fcn.00403660
lea edx, [esp + 0x156]
push edx
lea eax, [ebx + 0x58c]
push 0x10
push eax
call fcn.0041847e
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
mov dword [ebx + 0x404], ecx
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x66a]
push eax
mov word [esp + 0x66c], dx
call fcn.0041a170
add esp, 0xc
push 0x200
lea ecx, [esp + 0x254]
push 0
push ecx
call fcn.0041a170
add esp, 0xc
push 0
push ebx
mov esi, 0x433fa8
lea edi, [esp + 0x258]
call fcn.004010f0
test eax, eax
jne 0x401a50
mov dword [esp + 0x14], eax
jmp 0x401ba4
xor eax, eax
jmp 0x401a60
mov dl, byte [esp + eax + 0x250]
not dl
mov byte [esp + eax + 0x250], dl
inc eax
cmp eax, 0x200
jb 0x401a60
cmp dword [esp + 0x250], 0x504d534d
je 0x401a92
mov dword [esp + 0x14], 0
jmp 0x401ba4
lea edi, [ebx + 0x204]
mov ecx, 0x80
lea esi, [esp + 0x250]
mov eax, 0x4340c0
lea edx, [ebx + 0x50a]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], 1
sub edx, eax
jmp 0x401ac0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401ac0
lea eax, [ebx + 0x28a]
lea edx, [ebx + 0x408]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401ae0
lea eax, [ebx + 0x208]
lea edx, [ebx + 0x488]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401b00
cmp dword [ebx], 3
mov ax, word [ebx + 0x288]
mov cx, word [ebx + 0x32a]
mov word [ebx + 0x508], ax
mov word [ebx + 0x58a], cx
mov dword [ebx + 0x404], 5
jne 0x401b69
push 0x104
lea edx, [esp + 0x664]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x433fcc
lea eax, [esp + 0x664]
push 0x104
push eax
call fcn.00417d54
add esp, 0xc
jmp 0x401b7c
lea ecx, [esp + 0x660]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4340dc
lea edx, [esp + 0x664]
push 0x104
push edx
call fcn.00417d54
add esp, 0xc
lea eax, [esp + 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x2b70
mov word [ebx + 0x12a], dx
lea edi, [ebx + 0xaa]
mov ecx, 0x51
mov eax, 0x4340f4
mov edx, edi
mov dword [ebx + 4], 0x504d534d
mov word [ebx + 0x88], cx
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401bd2
mov eax, 0x434110
lea edx, [ebx + 8]
sub edx, eax
jmp 0x401bf0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401bf0
lea esi, [ebx + 0x8a]
mov eax, 0x43412c
mov edx, esi
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401c10
cmp dword [esp + 0x10], 0
mov dword [ebx + 0x1cc], 5
jne 0x401c3e
cmp dword [esp + 0xc], 0
jne 0x401c3e
cmp dword [esp + 0x14], 0
je 0x401cad
lea eax, [ebx + 0x408]
push eax
push 0x10
push esi
call fcn.0041847e
add esp, 0xc
lea ecx, [ebx + 0x488]
push ecx
lea eax, [ebx + 8]
push 0x40
push eax
call fcn.0041847e
add esp, 0xc
lea edx, [ebx + 0x50a]
push edx
push 0x40
push edi
call fcn.0041847e
mov ax, word [ebx + 0x508]
mov cx, word [ebx + 0x58a]
mov word [ebx + 0x88], ax
mov eax, dword [ebx + 0x404]
add esp, 0xc
mov word [ebx + 0x12a], cx
mov dword [ebx + 0x1cc], eax
test eax, eax
jne 0x401cad
mov dword [ebx + 0x1cc], 5
mov eax, 0x434138
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x401cb6
cmp word [ebx + 8], cx
je 0x401e0c
cmp word [ebx + 0x88], cx
jbe 0x401e0c
lea esi, [ebx + 0x9bc]
mov eax, esi
mov dword [ebx + 4], 0x504d534d
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401cf0
sub eax, edx
sar eax, 1
je 0x401d25
push esi
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401d25
push esi
lea edx, [ebx + 0x18c]
push 0x10
push edx
call fcn.0041847e
add esp, 0xc
cmp word [ebx + 0x18c], 0
lea eax, [ebx + 0x18c]
jne 0x401d45
push 0x434154
push 0x10
push eax
call fcn.0041847e
add esp, 0xc
cmp word [ebx + 0x1ac], 0
lea esi, [ebx + 0x1ac]
jne 0x401d8d
push 0x434164
push 0x10
push esi
call fcn.0041847e
lea edx, [ebx + 0x58c]
mov eax, edx
add esp, 0xc
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d70
sub eax, edi
sar eax, 1
je 0x401d8d
push edx
push 0x10
push esi
call fcn.0041847e
add esp, 0xc
cmp dword [ebx + 0x1cc], 0
mov dword [ebx + 0x1d0], 0x10002cc
jne 0x401daa
mov dword [ebx + 0x1cc], 5
push ebx
call fcn.00401230
test eax, eax
je 0x401e0c
push ebx
lea edi, [esp + 0x45c]
call fcn.004013b0
push 0x32
mov eax, edi
push eax
add ebx, 0x7b4
push ebx
call fcn.00403760
add esp, 0xc
mov esi, edi
call fcn.00401450
push 1
push 0
push 0x434174
mov ecx, edi
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.00417d45
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00417d45
mov esp, ebp
pop ebp
ret