Function at 0x4065f0
Capabilities:
Create directory
Create process on windows
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230eb
mov eax, dword fs:[0]
push eax
sub esp, 0xbcc
mov eax, dword [0x42f6dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xff
lea eax, [ebp - 0x2ff]
push 0
push eax
mov byte [ebp - 0x300], 0
call fcn.004103e0
add esp, 0xc
xorps xmm0, xmm0
push 0xff
lea eax, [ebp - 0x717]
push 0
push eax
mov byte [ebp - 0x50], 0
movq qword [ebp - 0x4f], xmm0
movq qword [ebp - 0x47], xmm0
movq qword [ebp - 0x3f], xmm0
mov dword [ebp - 0x37], 0
mov word [ebp - 0x33], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x718], 0
call fcn.004103e0
add esp, 0xc
lea eax, [ebp - 0xb17]
push 0x3ff
push 0
push eax
mov byte [ebp - 0xb18], 0
call fcn.004103e0
mov al, byte [0x42ac78]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x28], al
xor eax, eax
push 0x103
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov byte [ebp - 0x200], al
movq qword [ebp - 0x30], xmm0
lea eax, [ebp - 0x1ff]
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x1f], xmm0
xor bl, bl
call fcn.004103e0
add esp, 0xc
lea eax, [ebp - 0x407]
push 0x103
push 0
push eax
mov byte [ebp - 0x408], bl
call fcn.004103e0
add esp, 0xc
lea eax, [ebp - 0x617]
push 0x103
push 0
push eax
mov byte [ebp - 0x618], bl
call fcn.004103e0
add esp, 0xc
lea eax, [ebp - 0x50f]
push 0x103
push 0
push eax
mov byte [ebp - 0x510], bl
call fcn.004103e0
add esp, 0xc
lea eax, [ebp - 0x408]
push str.v:Intel
push 0x104
push eax
call fcn.0040b739
add esp, 0xc
lea eax, [ebp - 0x408]
push str._bin
push 0x104
push eax
call fcn.0040b78e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0040b739
add esp, 0xc
lea eax, [ebp - 0x618]
push str.options
push 0x104
push eax
call fcn.0040b78e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x510]
push 0x104
push eax
call fcn.0040b739
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x42a924
push 0x104
push eax
call fcn.0040b78e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0x104
push 0x4321a0
call fcn.0040b739
add esp, 0xc
push 0x42a924
push 0x104
push 0x4321a0
call fcn.0040b78e
add esp, 0xc
lea eax, [ebp - 0x200]
push str.v:Intel
push 0x104
push eax
call fcn.0040b739
add esp, 0xc
lea eax, [ebp - 0x200]
push str.data_0.bin
push 0x104
push eax
call fcn.0040b78e
lea edx, [ebp - 0x30]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406848
lea eax, [ebp - 0x20]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x30]
call fcn.00405e40
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x50]
call fcn.0040a6a0
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0040d110
add esp, 8
lea ecx, [ebp - 0x300]
test eax, eax
je 0x406896
lea eax, [ebp - 0x50]
push eax
jmp 0x40689b
push str.other
push esi
call fcn.004062f0
add esp, 8
mov ecx, 0x42ac9c
lea eax, [ebp - 0x300]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4068d0
test dl, dl
je 0x4068cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4068d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4068b0
xor eax, eax
jmp 0x4068d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406916
push eax
push eax
mov dword [0x432194], eax
mov byte [0x432198], al
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
call fcn.00405650
add esp, 4
test al, al
je 0x40690f
lea ecx, [ebp - 0xd8]
call fcn.00409640
xor eax, eax
jmp 0x406d55
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x406930
push 0x100
lea edx, [ebp - 0x718]
mov ecx, 4
call fcn.00405650
add esp, 4
test al, al
je 0x406a14
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x718]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406980
test dl, dl
je 0x40697c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406980
add ecx, 2
add eax, 2
test dl, dl
jne 0x406960
xor eax, eax
jmp 0x406985
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x200]
je 0x4069fa
push eax
mov bl, 1
call esi
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407870
test al, al
je 0x406a3f
push 0
push 0
mov dword [0x432194], 0
mov byte [0x432198], 0
call edi
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
call fcn.00405650
add esp, 4
test al, al
je 0x4069e8
lea ecx, [ebp - 0xd8]
call fcn.00409640
mov edx, 0x42acc4
lea ecx, [ebp - 0x408]
call fcn.004093b0
jmp 0x406a2b
push 0x42b210
push eax
call fcn.0040d9e2
add esp, 8
test eax, eax
je 0x406994
push eax
call fcn.0040cdc0
jmp 0x406a3c
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
mov bl, 1
call fcn.00407870
test al, al
je 0x406a3f
push ecx
lea edx, [ebp - 0x300]
mov ecx, 4
call fcn.004058e0
add esp, 4
push ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x200]
call fcn.00409fc0
add esp, 4
test eax, eax
lea eax, [ebp - 0x200]
je 0x406a6e
push eax
call esi
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406930
push 0x42b210
push eax
call fcn.0040d9e2
add esp, 8
test eax, eax
je 0x406a9a
push eax
call fcn.0040cdc0
add esp, 4
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.004011d0
sub esp, 8
lea eax, [ebp - 0x618]
push 1
push eax
lea ecx, [ebp - 0xbd8]
call fcn.00402020
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xbd8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbcc], 6
jne 0x406cd7
push 0
push 0x400
lea eax, [ebp - 0xb18]
push eax
lea ecx, [ebp - 0xbd8]
call fcn.00401cf0
lea ecx, [ebp - 0xbc8]
call fcn.00402ea0
test eax, eax
jne 0x406b29
mov eax, dword [ebp - 0xbd8]
lea ecx, [ebp - 0xbd8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406b17
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x406b29
push 0
call fcn.00404aa0
lea ecx, [ebp - 0x510]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b32
sub ecx, edx
mov esi, 0x104
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp - 0x510]
add eax, ecx
push eax
mov edx, str.pre_exe
lea ecx, [ebp - 0xb18]
call fcn.00406f80
mov ecx, 0x4321a0
add esp, 8
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b70
sub ecx, edx
sub esi, ecx
lea eax, [ecx + 0x4321a0]
push esi
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.00406f80
lea eax, [ebp - 0xf8]
push 0x20
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.00406f80
push 0x104
push 0x4322a8
mov edx, str.parameters
lea ecx, [ebp - 0xb18]
call fcn.00406f80
lea eax, [ebp - 0x510]
push 0x42b210
push eax
call fcn.0040d9e2
add esp, 0x20
test eax, eax
je 0x406c89
push eax
call fcn.0040cdc0
add esp, 4
lea eax, [ebp - 0x94]
push 0x40
push 0
push eax
mov dword [ebp - 0x98], 0x44
call fcn.004103e0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x510]
push eax
push 0
mov dword [ebp - 0x6c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0xb1c]
cmp eax, 0x666666
mov esi, 0
cmovne esi, dword [ebp - 0x20]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
jne 0x406c89
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407870
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.004011d0
push ecx
lea edx, [ebp - 0xf8]
mov ecx, 9
mov byte [0x432198], 1
call fcn.004058e0
add esp, 4
lea edx, [ebp - 0x98]
push 0
mov ecx, 9
call fcn.00405650
add esp, 4
test al, al
je 0x406cd0
lea ecx, [ebp - 0x98]
call fcn.00409740
test al, al
je 0x406cd0
test bl, bl
je 0x406cd7
mov esi, 1
jmp 0x406cd9
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xbdc], eax
lea ecx, [ebp - 0xbc8]
call fcn.00402130
mov eax, dword [ebp - 0xbd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0xbd8]
lea eax, [ebp - 0xb68]
mov edx, dword [ecx + 4]
push eax
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xbdc], ecx
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0040aaa0
add esp, 4
mov ax, si
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b6df
mov esp, ebp
pop ebp
ret