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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418aa3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c8
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3a0], ecx
lea eax, [ecx + 0x30]
mov dword [ebp - 0x3a4], 0
lea edx, [ecx + 0x18]
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00403440
add esp, 4
push 0x41ece0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00401630
mov dword [ebp - 0x248], 0
xor ecx, ecx
mov dword [ebp - 0x244], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x258], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x248], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, 1
mov dword [ebp - 0x398], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3c4]
cmp edx, 8
jb 0x402ce6
mov ecx, dword [ebp - 0x3d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402cdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40337b
push edx
push ecx
call fcn.00407e2f
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c8], 0
cmp dword [ebp - 0x244], 8
mov word [ebp - 0x3d8], ax
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
mov dword [ebp - 0x3c4], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4032f8
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00409800
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d76
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00401b80
mov byte [ebp - 4], 3
lea edi, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
mov esi, dword [ebp - 0x230]
cmovae edi, dword [ebp - 0x240]
mov dword [ebp - 0x39c], esi
test esi, esi
je 0x402f58
push 0x100
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.00409800
add esp, 0xc
mov ecx, 0x41ebac
mov edx, 0x100
movzx eax, word [ecx]
cmp ax, dx
jae 0x402e45
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x358], 1
cmp ecx, 0x41ebae
jne 0x402de4
mov edx, dword [ebp - 0x230]
or ecx, 0xffffffff
mov esi, 0x100
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, si
jae 0x402e32
cmp byte [ebp + eax - 0x358], 0
jne 0x402e3f
cmp ecx, edi
je 0x402f58
sub ecx, 2
jmp 0x402e20
sub ecx, edi
sar ecx, 1
jmp 0x402e85
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx esi, word [ecx]
mov edx, 1
mov eax, 0x41ebac
cmp word [eax], si
je 0x402e7b
add eax, 2
sub edx, 1
jne 0x402e60
cmp ecx, edi
je 0x402e76
sub ecx, 2
jmp 0x402e53
or ecx, 0xffffffff
jmp 0x402e7f
sub ecx, edi
sar ecx, 1
mov edx, dword [ebp - 0x230]
cmp ecx, 0xffffffff
je 0x402f58
inc ecx
mov dword [ebp - 0x3b0], 0
xor eax, eax
mov dword [ebp - 0x3ac], 7
mov word [ebp - 0x3c0], ax
cmp edx, ecx
jb 0x403380
mov eax, edx
sub eax, ecx
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push edx
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x3c0]
call fcn.00401b80
mov eax, 3
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x3c0]
push eax
call fcn.004033a0
mov edx, dword [ebp - 0x3ac]
cmp edx, 8
jb 0x402f4c
mov ecx, dword [ebp - 0x3c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403385
push edx
push ecx
call fcn.00407e2f
mov ecx, dword [ebp - 0x230]
add esp, 8
mov dword [ebp - 0x39c], ecx
jmp 0x402f58
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x39c], eax
mov edi, dword [ebp - 0x3a0]
mov ecx, edi
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x402f79
push str.__user
call fcn.00401630
mov eax, dword [ebp - 0x230]
jmp 0x402fc4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x3a8], edi
jb 0x402f8d
mov ecx, dword [edi]
mov dword [ebp - 0x3a8], ecx
cmp eax, 8
jb 0x402fbe
add eax, 0xfffffff9
lea eax, [ecx + eax*2]
mov dword [ebp - 0x3a4], eax
nop
sub eax, ecx
sar eax, 1
je 0x402fb8
cmp word [ecx], 0x2d
je 0x40309a
add ecx, 2
sub eax, 1
jne 0x402fa6
mov edi, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x39c]
mov byte [ebp - 4], 4
xor ecx, ecx
mov word [ebp - 0x3c0], cx
add eax, 0xb
mov ecx, dword [ebp - 0x398]
or ecx, 4
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3a4], ecx
lea ecx, [ebp - 0x3c0]
push eax
mov dword [ebp - 0x3ac], 7
call fcn.00401400
push str.___exename:
lea ecx, [ebp - 0x3c0]
call fcn.00401630
cmp dword [ebp - 0x22c], 8
lea edx, [ebp - 0x240]
mov esi, dword [ebp - 0x3b0]
cmovae edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0x230]
sub eax, esi
mov dword [ebp - 0x3a8], ecx
mov dword [ebp - 0x398], esi
cmp ecx, eax
ja 0x4030ff
cmp dword [ebp - 0x3ac], 8
lea eax, [ecx + esi]
mov dword [ebp - 0x3b0], eax
lea esi, [ebp - 0x3c0]
cmovae esi, dword [ebp - 0x3c0]
lea eax, [ecx + ecx]
push eax
mov eax, dword [ebp - 0x398]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00409280
mov eax, dword [ebp - 0x3a8]
add esp, 0xc
add eax, dword [ebp - 0x398]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x40311a
test ecx, ecx
je 0x402fb8
mov edx, str.__update
mov edi, ecx
mov esi, 8
sub edi, edx
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x4030f1
add edx, 2
sub esi, 1
jne 0x4030b0
sub ecx, dword [ebp - 0x3a8]
mov edi, dword [ebp - 0x3a0]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x402fbe
push 0xf
push str._updateinstall:
mov ecx, edi
call fcn.00401b80
mov eax, dword [ebp - 0x230]
jmp 0x402fc4
mov eax, dword [ebp - 0x3a4]
add ecx, 2
jmp 0x402fa0
push ecx
push edx
mov byte [ebp - 0x398], 0
push dword [ebp - 0x398]
push ecx
lea ecx, [ebp - 0x3c0]
call fcn.004014b0
cmp dword [ebp - 0x3ac], 8
lea edx, [ebp - 0x3c0]
mov esi, dword [edi + 0x10]
cmovae edx, dword [ebp - 0x3c0]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3b0]
sub eax, esi
mov dword [ebp - 0x398], esi
cmp ecx, eax
ja 0x403181
cmp dword [edi + 0x14], 8
lea eax, [ecx + esi]
mov dword [ebp - 0x3a4], eax
mov esi, edi
mov dword [edi + 0x10], eax
jb 0x40315c
mov esi, dword [edi]
lea eax, [ecx + ecx]
push eax
mov eax, dword [ebp - 0x398]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00409280
mov eax, dword [ebp - 0x3a4]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x403198
push ecx
push edx
mov byte [ebp - 0x398], 0
push dword [ebp - 0x398]
push ecx
mov ecx, edi
call fcn.004014b0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3ac]
cmp edx, 8
jb 0x4031dc
mov ecx, dword [ebp - 0x3c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40338a
push edx
push ecx
call fcn.00407e2f
add esp, 8
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
xorps xmm0, xmm0
mov dword [ebp - 0x394], 0x3c
cmovae eax, dword [ebp - 0x258]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x384], eax
mov eax, edi
movlpd qword [ebp - 0x370], xmm0
movlpd qword [ebp - 0x368], xmm0
movlpd qword [ebp - 0x360], xmm0
mov dword [ebp - 0x390], 0x40
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
jb 0x403243
mov eax, dword [edi]
mov dword [ebp - 0x380], eax
lea eax, [ebp - 0x394]
push eax
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x378], 5
mov dword [ebp - 0x374], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x14], 8
jb 0x40328a
mov edi, dword [edi]
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
push edi
cmovae eax, dword [ebp - 0x258]
push eax
push 0x6c
push str.CUnpackWorker::OnUnpackFinish
push str.__s__d___strExePath:_s__cmd:_s
call fcn.004022a0
mov byte [ebp - 4], 2
add esp, 0x14
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x4032f8
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4032ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40338f
push edx
push ecx
call fcn.00407e2f
add esp, 8
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
push 0x6e
push str.CUnpackWorker::OnUnpackFinish
push str.__s__d___PathFileExists_is_not_exists_strExePath:_s
call fcn.004022a0
mov edx, dword [ebp - 0x244]
add esp, 0x10
cmp edx, 8
jb 0x40335d
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403353
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403394
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407dee
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040b8ee
call fcn.00403430
call fcn.0040b8ee
call fcn.0040b8ee
call fcn.0040b8ee
call fcn.0040b8ee
int3