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

Disassembly:
mov eax, 0x596cb5
call fcn.0054f4e0
sub esp, 0x250
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x25c]
push edi
push eax
call fcn.0055ebe0
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402614
push str.DumpUper.exe
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408f1d
push 4
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.005672b4
add esp, 0x14
test eax, eax
je 0x40b3e5
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408f1d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402783
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004032b3
push 4
push dword [ebp - 0x10]
call fcn.005672b4
pop ecx
pop ecx
test eax, eax
je 0x40b3e5
lea eax, [ebp - 0x25c]
push eax
call esi
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b2de
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004033eb
push str.DumpUper.exe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408f1d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00402783
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004032b3
push 4
push dword [ebp - 0x10]
call fcn.005672b4
pop ecx
pop ecx
test eax, eax
je 0x40b3e5
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408f1d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00402783
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004032b3
push 4
push dword [ebp - 0x10]
call fcn.005672b4
pop ecx
pop ecx
test eax, eax
je 0x40b3e5
lea eax, [ebp - 0x25c]
push eax
call esi
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b395
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004033eb
push str.DumpUper.exe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408f1d
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00402783
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004032b3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x40b3f9
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b41e
mov esi, 0x60fce8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b403
sub ecx, edx
sar ecx, 1
je 0x40b41e
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004033eb
call fcn.00402c7e
push eax
lea ecx, [ebp - 0x14]
call fcn.0040258a
push dword [0x608058]
mov byte [ebp - 4], 6
push 0x60f8d8
push 0x60fae0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp + 8]
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push str.__pep_llu___pid_d___tid_d___src_s___ver_s___rep_d
push eax
call fcn.0040938f
add esp, 0x24
cmp dword [section..data], 0
je 0x40b47d
push 0xa
push str.___restart
lea ecx, [ebp - 0x14]
call fcn.00409169
mov esi, dword [0x60f8c8]
test esi, esi
je 0x40b498
push esi
call fcn.00402a6e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00409169
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0055ebe0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40b4e4
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004032b3
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004032b3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004032b3
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
inc eax
mov dword fs:[0], ecx
pop esi
leave
ret 4