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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4229cb
mov eax, dword fs:[0]
push eax
sub esp, 0xbbc
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
xor edi, edi
lea eax, [ebp - 0x29f]
push edi
push eax
mov byte [ebp - 0x2a0], 0
call fcn.0040fcd0
add esp, 0xc
xorps xmm0, xmm0
push 0xff
lea eax, [ebp - 0x6f7]
push edi
push eax
mov byte [ebp - 0x30], 0
movq qword [ebp - 0x2f], xmm0
movq qword [ebp - 0x27], xmm0
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x17], edi
mov word [ebp - 0x13], di
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x6f8], 0
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0xaf7]
push 0x3ff
push edi
push eax
mov byte [ebp - 0xaf8], 0
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0x19f]
push 0x103
push 0
xor bl, bl
push eax
mov byte [ebp - 0x1a0], bl
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0x3a7]
push 0x103
push 0
push eax
mov byte [ebp - 0x3a8], bl
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0x5f7]
push 0x103
push 0
push eax
mov byte [ebp - 0x5f8], bl
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0x4ef]
push 0x103
push 0
push eax
mov byte [ebp - 0x4f0], bl
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0x3a8]
push str.v:Intel
push 0x104
push eax
call fcn.0040afe9
add esp, 0xc
lea eax, [ebp - 0x3a8]
push str._bin
push 0x104
push eax
call fcn.0040b03e
add esp, 0xc
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x5f8]
push 0x104
push eax
call fcn.0040afe9
add esp, 0xc
lea eax, [ebp - 0x5f8]
push str.options
push 0x104
push eax
call fcn.0040b03e
add esp, 0xc
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x4f0]
push 0x104
push eax
call fcn.0040afe9
add esp, 0xc
lea eax, [ebp - 0x4f0]
push 0x429924
push 0x104
push eax
call fcn.0040b03e
add esp, 0xc
lea eax, [ebp - 0x3a8]
push eax
push 0x104
push 0x4311a0
call fcn.0040afe9
add esp, 0xc
push 0x429924
push 0x104
push 0x4311a0
call fcn.0040b03e
add esp, 0xc
lea eax, [ebp - 0x1a0]
push str.v:Intel
push 0x104
push eax
call fcn.0040afe9
add esp, 0xc
lea eax, [ebp - 0x1a0]
push str.data_0.bin
push 0x104
push eax
call fcn.0040b03e
add esp, 0xc
lea eax, [ebp - 0x3a8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x30]
call fcn.00409f60
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.0040c9c0
add esp, 8
lea ecx, [ebp - 0x2a0]
test eax, eax
je 0x406109
lea eax, [ebp - 0x30]
push eax
jmp 0x40610e
push str.other
push esi
call fcn.00405c10
add esp, 8
mov ecx, 0x429c80
lea eax, [ebp - 0x2a0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406142
test dl, dl
je 0x40613e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406142
add eax, 2
add ecx, 2
test dl, dl
jne 0x406122
xor eax, eax
jmp 0x406147
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40617e
push eax
lea edx, [ebp - 0x3e8]
lea ecx, [eax + 9]
mov dword [0x431194], edi
mov byte [0x431198], al
call fcn.00404f70
add esp, 4
test al, al
je 0x406177
lea ecx, [ebp - 0x3e8]
call fcn.00408ef0
xor eax, eax
jmp 0x40652e
push 0x100
lea edx, [ebp - 0x6f8]
mov ecx, 4
call fcn.00404f70
add esp, 4
lea ecx, [ebp - 0x2a0]
test al, al
je 0x40622e
lea eax, [ebp - 0x6f8]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4061d0
test dl, dl
je 0x4061cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4061d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4061b0
xor eax, eax
jmp 0x4061d5
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x1a0]
je 0x406214
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x1a0]
lea ecx, [ebp - 0x2a0]
call fcn.00407020
test al, al
je 0x406253
call fcn.00406750
mov edx, 0x429ca8
lea ecx, [ebp - 0x3a8]
call fcn.00408c60
jmp 0x40623f
push 0x42a23c
push eax
call fcn.0040d2d9
add esp, 8
test eax, eax
je 0x4061e8
push eax
call fcn.0040c670
jmp 0x406250
lea edx, [ebp - 0x1a0]
mov bl, 1
call fcn.00407020
test al, al
je 0x406253
push ecx
lea edx, [ebp - 0x2a0]
mov ecx, 4
call fcn.00405200
add esp, 4
lea eax, [ebp - 0x1a0]
push 0x42a23c
push eax
call fcn.0040d2d9
add esp, 8
test eax, eax
je 0x406285
push eax
call fcn.0040c670
add esp, 4
lea edx, [ebp - 0x3a8]
lea ecx, [ebp - 0x1a0]
call fcn.004011d0
sub esp, 8
lea eax, [ebp - 0x5f8]
push 1
push eax
lea ecx, [ebp - 0xbc8]
call fcn.00402020
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xbc8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbbc], 6
jne 0x4064b0
push 0
push 0x400
lea eax, [ebp - 0xaf8]
push eax
lea ecx, [ebp - 0xbc8]
call fcn.00401cf0
lea ecx, [ebp - 0xbb8]
call fcn.00402ea0
test eax, eax
jne 0x406314
mov eax, dword [ebp - 0xbc8]
lea ecx, [ebp - 0xbc8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406302
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x406314
push 0
call fcn.00404aa0
lea ecx, [ebp - 0x4f0]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406320
sub ecx, edx
mov esi, 0x104
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp - 0x4f0]
add eax, ecx
push eax
mov edx, str.pre_exe
lea ecx, [ebp - 0xaf8]
call fcn.004067a0
mov ecx, 0x4311a0
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406357
sub ecx, edx
sub esi, ecx
lea eax, [ecx + 0x4311a0]
push esi
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xaf8]
call fcn.004067a0
lea eax, [ebp - 0x98]
push 0x20
push eax
mov edx, str.main_exe
lea ecx, [ebp - 0xaf8]
call fcn.004067a0
push 0x104
push 0x4312a8
mov edx, str.parameters
lea ecx, [ebp - 0xaf8]
call fcn.004067a0
lea eax, [ebp - 0x4f0]
push 0x42a23c
push eax
call fcn.0040d2d9
add esp, 0x20
test eax, eax
je 0x406468
push eax
call fcn.0040c670
add esp, 4
lea eax, [ebp - 0x74]
push 0x40
push 0
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0040fcd0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0xb0c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4f0]
push eax
push 0
mov dword [ebp - 0x4c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0xafc]
cmp eax, 0x666666
cmovne edi, dword [ebp - 0xb0c]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
jne 0x406468
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1a0]
lea ecx, [ebp - 0x2a0]
call fcn.00407020
lea edx, [ebp - 0x3a8]
lea ecx, [ebp - 0x1a0]
call fcn.004011d0
push ecx
lea edx, [ebp - 0x98]
mov ecx, 9
mov byte [0x431198], 1
call fcn.00405200
add esp, 4
lea edx, [ebp - 0x78]
push 0
mov ecx, 9
call fcn.00404f70
add esp, 4
test al, al
je 0x4064a9
lea ecx, [ebp - 0x78]
call fcn.00409000
test al, al
je 0x4064a9
test bl, bl
je 0x4064b0
mov esi, 1
jmp 0x4064b2
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbc8]
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 - 0xbc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xbcc], eax
lea ecx, [ebp - 0xbb8]
call fcn.00402130
mov eax, dword [ebp - 0xbc8]
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 - 0xbc8]
lea eax, [ebp - 0xb58]
mov edx, dword [ecx + 4]
push eax
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xbcc], ecx
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0040a360
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.0040af8f
mov esp, ebp
pop ebp
ret