Function at 0x403350
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
push 0xffffffffffffffff
push 0x461166
mov eax, dword fs:[0]
push eax
sub esp, 0x90c
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0x920]
mov dword fs:[0], eax
call fcn.004032b0
xor ebx, ebx
cmp eax, ebx
jne 0x40339d
xor eax, eax
jmp 0x4035b6
cmp eax, 1
jne 0x4035b1
lea edi, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00402910
push 0x3ff
lea eax, [esp + 0x121]
push ebx
mov dword [esp + 0x930], ebx
push eax
mov byte [esp + 0x128], bl
call fcn.00445a00
add esp, 0xc
lea ecx, [esp + 0x11c]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x11c]
push edx
push ebx
push str.delme
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00403a20
mov byte [esp + 0x928], 1
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
mov eax, ebp
jne 0x40342e
mov eax, 0x469d1e
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00403610
lea esi, [esp + 0x3c]
call fcn.00403720
lea esi, [esp + 0x40]
call fcn.00404a10
test eax, eax
jne 0x40347e
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x44]
lea ecx, [esp + ecx + 0x3c]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40346d
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x40347e
push ebx
call fcn.004030a0
lea ecx, [esp + 0x90]
mov byte [esp + 0x928], bl
call fcn.00403b40
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.0045c543
add esp, 4
push 0x3ff
lea eax, [esp + 0x521]
push ebx
push eax
mov byte [esp + 0x528], bl
call fcn.00445a00
add esp, 0xc
push 0x47dcf0
mov edi, 0x469e04
lea esi, [esp + 0x24]
call fcn.00402620
mov ecx, dword [0x47dcf4]
mov esi, 0x10
add esp, 4
cmp dword [0x47dd08], esi
jae 0x4034f7
mov ecx, 0x47dcf4
cmp dword [eax + 0x18], esi
jb 0x403501
mov eax, dword [eax + 4]
jmp 0x403504
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x128]
push ecx
push str.__s___d___s____slauncher.new__update
lea edx, [esp + 0x530]
push 0x400
push edx
call fcn.0044313b
add esp, 0x1c
cmp dword [esp + 0x38], esi
jb 0x403542
mov eax, dword [esp + 0x24]
push eax
call fcn.00420ede
add esp, 4
push 0x44
lea ecx, [esp + 0xd8]
push ebx
push ecx
call fcn.00445a00
add esp, 0xc
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xd8]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea ecx, [esp + 0x53c]
push ecx
push ebx
mov dword [esp + 0xfc], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4035a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, ebx
je 0x40359d
push ebp
call fcn.00420ede
add esp, 4
mov eax, 2
jmp 0x4035b6
cmp ebp, ebx
je 0x4035b1
push ebp
call fcn.00420ede
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x920]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x908]
xor ecx, esp
call fcn.00441b4d
add esp, 0x918
ret