Function at 0x401300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x278
mov eax, dword [0x404014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x104
lea edi, [ebp - 0x218]
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x4013e7
test eax, eax
je 0x4013f6
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4015de
push str.firefox.exe
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40160a
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x230], 0x22
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
cmp eax, 6
ja 0x401660
lea eax, [ebp - 0x22e]
lea ecx, [esi + 1]
mov dword [eax + 0xe], ecx
mov ecx, esi
add ecx, esi
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + esi*2 - 0x22e], 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
mov edx, ecx
sub edx, eax
cmp edx, 0x11
jb 0x401677
lea edx, [eax + 0x11]
mov dword [ebp - 0x220], edx
cmp ecx, 8
jb 0x40143f
mov ecx, dword [ebp - 0x230]
jmp 0x401445
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40133b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, esp
sub esp, 0x1c
mov edi, esp
lea ecx, [edi + 4]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 7
mov word [edi + 4], 0
mov edx, 0x24
push str.844fa30e_0860_11ed_898b_373276936058
call fcn.00402530
add esp, 4
mov dword [edi], esi
mov ecx, edi
call section..text
mov esp, ebx
jmp 0x40164a
lea ecx, [ebp - 0x230]
movups xmm0, xmmword [0x403290]
movups xmmword [ecx + eax*2 + 0x10], xmm0
movups xmm0, xmmword [str.___private_window]
movups xmmword [ecx + eax*2], xmm0
mov word [ecx + eax*2 + 0x20], 0x77
mov word [ecx + eax*2 + 0x22], 0
cmp word [ebx], 0
je 0x401506
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
cmp ecx, eax
je 0x4016df
lea edx, [eax + 1]
mov dword [ebp - 0x220], edx
cmp ecx, 8
jb 0x40149e
mov ecx, dword [ebp - 0x230]
jmp 0x4014a4
lea ecx, [ebp - 0x230]
mov word [ecx + eax*2], 0x20
mov word [ecx + eax*2 + 2], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov esi, edx
sub esi, ecx
cmp esi, eax
jb 0x4016fc
lea ebx, [ecx + eax]
mov dword [ebp - 0x220], ebx
cmp edx, 8
jb 0x4014e8
mov esi, dword [ebp - 0x230]
jmp 0x4014ee
lea esi, [ebp - 0x230]
lea ecx, [esi + ecx*2]
add eax, eax
push eax
push dword [ebp + 0x10]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [esi + ebx*2], 0
xorps xmm0, xmm0
lea esi, [ebp - 0x274]
movups xmmword [esi + 0x34], xmm0
movups xmmword [esi + 0x24], xmm0
movups xmmword [esi + 0x14], xmm0
movups xmmword [esi + 4], xmm0
mov dword [esi], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [ebp - 0x21c], 8
jb 0x40153d
mov eax, dword [ebp - 0x230]
jmp 0x401543
lea eax, [ebp - 0x230]
sub esp, 0x28
lea ecx, [ebp - 0x284]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x403100]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401696
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x284]
call edi
push dword [ebp - 0x280]
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40164a
mov ecx, dword [ebp - 0x230]
lea edi, [eax + eax]
add edi, 2
cmp edi, 0x1000
jb 0x4015d2
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x401713
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.0040174e
add esp, 8
jmp 0x40164a
mov edi, esp
push eax
sub esp, 0x18
mov esi, esp
lea ecx, [esi + 4]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 7
mov word [esi + 4], 0
mov edx, 0x24
push str.811237de_0904_11ed_8745_c7c269742323
jmp 0x401634
mov edi, esp
push eax
sub esp, 0x18
mov esi, esp
lea ecx, [esi + 4]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 7
mov word [esi + 4], 0
mov edx, 0x24
push str.8964fd30_0860_11ed_8374_576505ba4488
call fcn.00402530
add esp, 4
mov dword [esi], ebx
mov ecx, esi
call section..text
xor esi, esi
inc esi
mov esp, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402380
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [ebp - 0x230]
mov edx, esi
push esi
push edi
call fcn.00402720
add esp, 8
jmp 0x4013b5
lea ecx, [ebp - 0x230]
mov edx, 0x11
push 0x11
push str.___private_window
call fcn.00402720
add esp, 8
jmp 0x40146a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, esp
sub esp, 0x1c
mov edi, esp
lea ecx, [edi + 4]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 7
mov word [edi + 4], 0
mov edx, 0x24
push str.89d2ca2c_0860_11ed_883c_bf345b8391bc
call fcn.00402530
add esp, 4
mov dword [edi], esi
mov ecx, edi
call section..text
mov esp, ebx
jmp 0x401595
lea ecx, [ebp - 0x230]
xor edx, edx
inc edx
push 1
push 0x40341e
call fcn.00402720
add esp, 8
jmp 0x4014b1
lea ecx, [ebp - 0x230]
mov edx, eax
push eax
push ebx
call fcn.00402720
add esp, 8
jmp 0x401506
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]