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

Disassembly:
sub esp, 0x20
mov eax, dword [0x42dbf8]
mov edx, dword [eax + 0xc]
push ebx
push ebp
push esi
push edi
mov ecx, 0x42dbf8
call edx
lea ebx, [eax + 0x10]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], ebx
jge 0x40e523
push 0x104
lea ecx, [esp + 0x18]
call fcn.00402010
mov ebx, dword [esp + 0x14]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test ebx, ebx
jne 0x40e537
xor eax, eax
jmp 0x40e555
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e540
sub eax, edx
sar eax, 1
js 0x40eaef
cmp eax, dword [ebx - 8]
jg 0x40eaef
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov eax, dword [0x42dbf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x42dbf8
call edx
lea ebp, [eax + 0x10]
mov eax, dword [0x42dbf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x42dbf8
mov dword [esp + 0x18], ebp
call edx
lea edi, [eax + 0x10]
mov eax, dword [0x42dbf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x42dbf8
mov dword [esp + 0x1c], edi
call edx
lea esi, [eax + 0x10]
mov eax, dword [esp + 0x34]
push 0x2f
push eax
mov dword [esp + 0x18], esi
call fcn.00413f90
add esp, 8
test eax, eax
jne 0x40e5c1
or eax, 0xffffffff
jmp 0x40e5c7
sub eax, dword [esp + 0x34]
sar eax, 1
lea ecx, [eax + 1]
cmp ecx, 0xffffffff
je 0x40ea51
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
call fcn.0040dc50
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403550
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e61a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 0
jl 0x40e6a2
push 0x426524
push esi
call fcn.00413f0f
add esp, 8
test eax, eax
je 0x40e6a2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40e6a2
cmp dword [esi - 0xc], 0
jge 0x40e64a
or eax, 0xffffffff
jmp 0x40e665
push 0x426524
push esi
call fcn.00413f0f
add esp, 8
test eax, eax
jne 0x40e661
or eax, 0xffffffff
jmp 0x40e665
sub eax, esi
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402280
push eax
lea ecx, [esp + 0x14]
call fcn.00403550
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e69e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push 0x2e
push esi
call fcn.00413f90
add esp, 8
test eax, eax
je 0x40e77f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40e77f
push 0x426518
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040dc50
push eax
push 0x425564
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00403550
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e756
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e776
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
jmp 0x40e80a
push 0x426518
lea ecx, [esp + 0x14]
push ecx
push 0x425564
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00403550
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e806
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
push 0x425564
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.00403550
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e87a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e89a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ecx
lea edi, [ebx - 0x10]
mov esi, esp
push edi
call fcn.00401910
mov ebp, dword [esp + 0x40]
add eax, 0x10
mov dword [esi], eax
add ebp, 0xfffffff0
mov esi, esp
push ebp
call fcn.00401910
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040e0f0
add esp, 0xc
test eax, eax
je 0x40e9b4
mov esi, dword [esp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 5
push 0
push 0
push esi
push 0x42575c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401cc0
add esp, 8
test al, al
je 0x40e918
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e954
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e96d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e98d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9a7
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea0d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea47
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eac1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401000
int3