Function at 0x404670
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4648d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov eax, dword [0x47469c]
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 2
call fcn.0045e795
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0045e7e4
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x10]
call fcn.0045d574
mov eax, dword [eax]
push 0x46f428
push eax
call fcn.004531a1
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne byte [esp + 7]
call fcn.0045e3c6
cmp byte [esp + 7], bl
je 0x40470e
push 0x46f428
lea ecx, [esp + 0xc]
call fcn.0045e756
push str.mycookies.txt
lea ecx, [esp + 0xc]
call fcn.0045e756
lea ecx, [esp + 0x1c]
call fcn.0045e8b0
mov ecx, dword [esp + 8]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 3
call fcn.0045e9c2
test eax, eax
je 0x4048bf
mov eax, dword [esp + 0x78]
push edi
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0045eb19
lea ecx, [esp + 0x20]
call fcn.0045ebdd
push str.cookiepath:
lea ecx, [esp + 0x20]
call fcn.0045e434
lea edx, [esp + 0xc]
mov byte [esp + 0x74], 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0045e5a9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 5
call fcn.0045e4b3
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 4
call fcn.0045e3c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 3
call fcn.0045e3c6
push 0x104
push 0x104
lea ecx, [esp + 0x14]
call fcn.0045e795
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.0045e7e4
mov edx, dword [esp + 0x10]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x40], str.open
mov dword [esp + 0x38], pe_nt_image_headers32
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
je 0x4048bf
mov ecx, dword [esp + 0x64]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x404852
mov edx, dword [esp + 0x64]
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x10]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov edx, dword [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 2
call fcn.0045e905
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 1
call fcn.0045e3c6
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], bl
call fcn.0045e3c6
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045e3c6
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 2
call fcn.0045e905
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 1
call fcn.0045e3c6
lea ecx, [esp + 8]
mov byte [esp + 0x70], bl
call fcn.0045e3c6
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.0045e3c6
mov ecx, dword [esp + 0x68]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret