Function at 0x405ec0
Capabilities:
Create directory
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42296b
mov eax, dword fs:[0]
push eax
sub esp, 0xbcc
mov eax, dword [0x42e6dc]
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.0040fc70
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.0040fc70
add esp, 0xc
lea eax, [ebp - 0xb17]
push 0x3ff
push 0
push eax
mov byte [ebp - 0xb18], 0
call fcn.0040fc70
mov al, byte [0x429c68]
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.0040fc70
add esp, 0xc
lea eax, [ebp - 0x407]
push 0x103
push 0
push eax
mov byte [ebp - 0x408], bl
call fcn.0040fc70
add esp, 0xc
lea eax, [ebp - 0x617]
push 0x103
push 0
push eax
mov byte [ebp - 0x618], bl
call fcn.0040fc70
add esp, 0xc
lea eax, [ebp - 0x50f]
push 0x103
push 0
push eax
mov byte [ebp - 0x510], bl
call fcn.0040fc70
add esp, 0xc
lea eax, [ebp - 0x408]
push str.v:Intel
push 0x104
push eax
call fcn.0040afc9
add esp, 0xc
lea eax, [ebp - 0x408]
push str._bin
push 0x104
push eax
call fcn.0040b01e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0040afc9
add esp, 0xc
lea eax, [ebp - 0x618]
push str.options
push 0x104
push eax
call fcn.0040b01e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x510]
push 0x104
push eax
call fcn.0040afc9
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x429924
push 0x104
push eax
call fcn.0040b01e
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0x104
push 0x4311a0
call fcn.0040afc9
add esp, 0xc
push 0x429924
push 0x104
push 0x4311a0
call fcn.0040b01e
add esp, 0xc
lea eax, [ebp - 0x200]
push str.v:Intel
push 0x104
push eax
call fcn.0040afc9
add esp, 0xc
lea eax, [ebp - 0x200]
push str.data_0.bin
push 0x104
push eax
call fcn.0040b01e
lea edx, [ebp - 0x30]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406118
lea eax, [ebp - 0x20]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x30]
call fcn.00405760
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x50]
call fcn.00409f40
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0040c9a0
add esp, 8
lea ecx, [ebp - 0x300]
test eax, eax
je 0x406166
lea eax, [ebp - 0x50]
push eax
jmp 0x40616b
push str.other
push esi
call fcn.00405c10
add esp, 8
mov ecx, 0x429c8c
lea eax, [ebp - 0x300]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4061a0
test dl, dl
je 0x40619c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4061a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406180
xor eax, eax
jmp 0x4061a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4061db
push eax
lea edx, [ebp - 0xd8]
lea ecx, [eax + 9]
mov dword [0x431194], eax
mov byte [0x431198], al
call fcn.00404f70
add esp, 4
test al, al
je 0x4061d4
lea ecx, [ebp - 0xd8]
call fcn.00408ee0
xor eax, eax
jmp 0x406601
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4061f0
push 0x100
lea edx, [ebp - 0x718]
mov ecx, 4
call fcn.00404f70
add esp, 4
test al, al
je 0x4062ce
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x718]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406240
test dl, dl
je 0x40623c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406240
add ecx, 2
add eax, 2
test dl, dl
jne 0x406220
xor eax, eax
jmp 0x406245
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x200]
je 0x4062b4
push eax
mov bl, 1
call esi
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407110
test al, al
je 0x4062f9
push 0
lea edx, [ebp - 0xd8]
mov ecx, 9
mov dword [0x431194], 0
mov byte [0x431198], 0
call fcn.00404f70
add esp, 4
test al, al
je 0x4062a2
lea ecx, [ebp - 0xd8]
call fcn.00408ee0
mov edx, 0x429cb4
lea ecx, [ebp - 0x408]
call fcn.00408c50
jmp 0x4062e5
push 0x42a200
push eax
call fcn.0040d272
add esp, 8
test eax, eax
je 0x406254
push eax
call fcn.0040c650
jmp 0x4062f6
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
mov bl, 1
call fcn.00407110
test al, al
je 0x4062f9
push ecx
lea edx, [ebp - 0x300]
mov ecx, 4
call fcn.00405200
add esp, 4
push ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x200]
call fcn.00409860
add esp, 4
test eax, eax
lea eax, [ebp - 0x200]
je 0x406324
push eax
call esi
push 0xea60
call edi
jmp 0x4061f0
push 0x42a200
push eax
call fcn.0040d272
add esp, 8
test eax, eax
je 0x406350
push eax
call fcn.0040c650
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 0x406583
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 0x4063df
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 0x4063cd
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4063df
push 0
call fcn.00404aa0
lea ecx, [ebp - 0x510]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063e8
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.00406820
mov ecx, 0x4311a0
add esp, 8
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406420
sub ecx, edx
sub esi, ecx
lea eax, [ecx + 0x4311a0]
push esi
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.00406820
lea eax, [ebp - 0xf8]
push 0x20
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xb18]
call fcn.00406820
push 0x104
push 0x4312a8
mov edx, str.parameters
lea ecx, [ebp - 0xb18]
call fcn.00406820
lea eax, [ebp - 0x510]
push 0x42a200
push eax
call fcn.0040d272
add esp, 0x20
test eax, eax
je 0x406535
push eax
call fcn.0040c650
add esp, 4
lea eax, [ebp - 0x94]
push 0x40
push 0
push eax
mov dword [ebp - 0x98], 0x44
call fcn.0040fc70
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 0x406535
push 0xea60
call edi
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x300]
call fcn.00407110
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x200]
call fcn.004011d0
push ecx
lea edx, [ebp - 0xf8]
mov ecx, 9
mov byte [0x431198], 1
call fcn.00405200
add esp, 4
lea edx, [ebp - 0x98]
push 0
mov ecx, 9
call fcn.00404f70
add esp, 4
test al, al
je 0x40657c
lea ecx, [ebp - 0x98]
call fcn.00408fe0
test al, al
je 0x40657c
test bl, bl
je 0x406583
mov esi, 1
jmp 0x406585
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.0040a340
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.0040af6f
mov esp, ebp
pop ebp
ret