Function at 0x407650
Capabilities:
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 0x44542e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf4
mov eax, dword [0x45d074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], 0
push str.LOCALAPPDATA
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0
push eax
mov dword [ebp - 0x30], 0
call fcn.0042f042
mov edx, dword [ebp - 0xe4]
add esp, 0xc
mov ecx, edx
mov dword [ebp - 0xf0], 0
xor eax, eax
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4076f2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x100]
call fcn.0040ed10
push 9
push str._file.txt
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.004110a0
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xec]
cmp edx, 8
jb 0x40779a
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407790
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a1c
push edx
push ecx
call fcn.004230a3
add esp, 8
push 0xb0
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.00424f60
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xe0], 0x456f08
cmovae esi, dword [ebp - 0x2c]
add esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe8], 3
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x7c], 0x60
push eax
call fcn.004114d0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.0040f790
push ecx
push 2
push esi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 7
call fcn.0040f660
test eax, eax
jne 0x40786c
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402610
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
mov byte [ebp - 4], 8
lea edx, [ebx + 8]
cmp dword [ebx + 0x1c], 8
lea ecx, [ebp - 0xe0]
cmovae edx, dword [ebx + 8]
call fcn.00412b80
push eax
call fcn.00412e40
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.0040f5a0
test eax, eax
jne 0x4078f0
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402610
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0xa
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.0040c290
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.00421ed0
mov edx, dword [ebp - 0x18]
add esp, 4
cmp edx, 8
jb 0x4079b5
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4079ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a21
push edx
push ecx
call fcn.004230a3
add esp, 8
mov edx, dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x4079ff
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4079f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a21
push edx
push ecx
call fcn.004230a3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422e0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042fe3b
call fcn.0042fe3b
int3