Function at 0x408e20
Capabilities:
Check if file exists
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce18
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x48d1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00446820
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.00402230
mov ecx, eax
test ecx, ecx
je 0x409310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x25c]
call fcn.00401fc0
test al, al
jne 0x408ef2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ed0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004032a0
push str.DumpUper.exe
lea eax, [ebp - 0x25c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.00406800
push 4
push dword [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.0044ebbb
add esp, 0x14
or edi, 0xffffffff
test eax, eax
je 0x40911e
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00406800
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00401c50
mov edx, dword [ebp - 0x260]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408f86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push dword [ebp - 0x21c]
call fcn.0044ebbb
add esp, 8
test eax, eax
je 0x40911e
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004032a0
push str.DumpUper.exe
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00406800
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00401c50
mov edx, dword [ebp - 0x260]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40901e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push dword [ebp - 0x21c]
call fcn.0044ebbb
add esp, 8
test eax, eax
je 0x40911e
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00406800
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.00401c50
mov edx, dword [ebp - 0x260]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409082
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push dword [ebp - 0x21c]
call fcn.0044ebbb
add esp, 8
test eax, eax
je 0x40911e
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004032a0
push str.DumpUper.exe
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00406800
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00401c50
mov edx, dword [ebp - 0x264]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40911e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x409135
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409162
mov ecx, 0x491240
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409140
sub ecx, edx
sar ecx, 1
je 0x409162
push ecx
push 0x491240
lea ecx, [ebp - 0x21c]
call fcn.004032a0
call fcn.00402230
mov ecx, eax
test ecx, ecx
je 0x40931a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x260], eax
push dword [0x48d160]
mov byte [ebp - 4], 7
push 0x490e30
push 0x491038
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x260]
push str.__pep_llu___pid_d___tid_d___src_s___ver_s___rep_d
push eax
call fcn.00406e10
add esp, 0x24
cmp dword [0x48d164], 0
je 0x4091d3
push str.___restart
lea ecx, [ebp - 0x260]
call fcn.00406d10
mov eax, dword [0x491448]
test eax, eax
je 0x4091e8
push eax
lea ecx, [ebp - 0x260]
call fcn.00406d10
mov eax, dword [ebp - 0x21c]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x260]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x258]
push eax
movlpd qword [ebp - 0x250], xmm0
mov dword [ebp - 0x240], 0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x258], 0x3c
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x254], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409280
push 0xffffffffffffffff
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4092aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4092cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4092ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041374e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401fa0
push 0x80004005
call fcn.00401fa0
int3