Function at 0x406270
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes
Read file on windows
Set file attributes

Disassembly:
mov eax, 0xc64c4
call fcn.00408870
mov edx, dword [0x40e83c]
mov eax, dword [0x40e834]
push ebx
push esi
push edi
mov ecx, 6
mov esi, 0x40e818
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40e838]
mov dword [esp + 0x24], edx
mov edx, dword [0x40e80c]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [0x40e840]
mov dword [esp + 0x24], ecx
mov cx, word [0x40e844]
push 0x40e800
mov dword [esp + 0x30], eax
mov eax, dword [0x40e810]
mov word [esp + 0x34], cx
mov cx, word [0x40e814]
push 0x40bc84
push 0x411028
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.00402080
lea eax, [esp + 0x188]
push eax
push 0x40e7f0
push 0x40bc84
push 0x411028
call fcn.00402080
lea ecx, [esp + 0x580]
push ecx
push 0x40e7e4
push 0x40bc84
push 0x411028
call fcn.00402080
lea edx, [esp + 0x400]
push edx
push 0x40e7d8
push 0x40bc84
push 0x411028
call fcn.00402080
add esp, 0x40
lea eax, [esp + 0x2a4]
push eax
push 0x40e7cc
push 0x40bc84
push 0x411028
call fcn.00402080
lea ecx, [esp + 0xaac]
push ecx
push 0x40c330
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00402080
mov edx, dword [0x411e98]
add esp, 0x20
push 0
push 0
lea ecx, [esp + 0xaa4]
push ecx
push 0x40cd38
push 0x40cbec
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
lea eax, [esp + 0x4c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x406bba
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x406bba
lea edx, [esp + 0xbc8]
push 0x40c401
push edx
call fcn.00408760
lea eax, [esp + 0x2fd8]
push 0x40c401
push eax
call fcn.00408760
add esp, 0x10
xor edi, edi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x61a7f
lea edx, [esp + 0x64a5c]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0xc]
push esi
mov byte [esp + eax + 0x64a54], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x4c]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x406472
push 0x80
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0xc]
push ebp
xor ebp, ebp
xor esi, esi
test eax, eax
jbe 0x4065d2
mov al, byte [esp + esi + 0x64a54]
cmp al, 0xd
je 0x40649f
cmp al, 0xa
je 0x40649f
mov byte [esp + edi + 0x2fd4], al
inc edi
jmp 0x4065c5
lea ecx, [esp + 0x2fd4]
mov byte [esp + edi + 0x2fd4], 0
push ecx
xor edi, edi
call fcn.004086d0
add esp, 4
test eax, eax
jbe 0x4065c5
push edi
lea edx, [esp + 0x2fd8]
push 0x40e7c4
push edx
call fcn.00401370
add esp, 0xc
test eax, eax
jne 0x4065c5
push eax
lea eax, [esp + 0x2fd8]
push 0x40e7bc
push eax
call fcn.00401370
add esp, 0xc
test eax, eax
jne 0x4065c5
push eax
lea ecx, [esp + 0x2fd8]
push 0x40e7b8
push ecx
call fcn.00401370
add esp, 0xc
test eax, eax
jne 0x4065c5
lea edx, [esp + 0x1bd0]
push edx
lea eax, [esp + 0x2fd8]
push eax
call fcn.004021c0
lea ecx, [esp + 0x1bd8]
push ecx
call fcn.004086d0
add esp, 0xc
test eax, eax
jbe 0x4065c5
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xbd0]
push eax
call fcn.00408770
lea ecx, [esp + 0x1bd8]
push ecx
lea edx, [esp + 0xbd8]
push edx
call fcn.00408770
add esp, 0x10
test ebp, ebp
jne 0x406585
push 0x40e7b0
lea eax, [esp + 0xbd0]
push eax
jmp 0x406592
push 0x40e7a8
lea ecx, [esp + 0xbd0]
push ecx
call fcn.00408770
add esp, 8
lea edx, [esp + 0x17c]
push edx
lea eax, [esp + 0xbd0]
push eax
call fcn.00408770
lea ecx, [esp + 0xbd4]
push 0x40e7a4
push ecx
call fcn.00408770
add esp, 0x10
inc ebp
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x406483
lea edx, [esp + 0xbcc]
push edx
call fcn.004086d0
add esp, 4
test eax, eax
jbe 0x406bb9
lea eax, [esp + 0xbcc]
push eax
lea ecx, [esp + 0x3d8]
push ecx
call fcn.00401e80
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 8
push 0x3e8
call esi
mov eax, dword [0x411e98]
push 0
push 0
push 0
lea edx, [esp + 0x3e0]
push edx
push 0x40cbec
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x2710
call esi
lea ecx, [esp + 0x3d4]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x406665
push 0x80
lea edx, [esp + 0x3d8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [esp + 0x3d4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x17c]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x406bb9
lea edx, [esp + 0xbcc]
push 0x40c401
push edx
call fcn.00408760
lea eax, [esp + 0x2fdc]
push 0x40c401
push eax
call fcn.00408760
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea ecx, [esp + 0x194]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x406bb9
push 0
lea edx, [esp + 0x14]
push edx
push 0x61a7f
lea eax, [esp + 0x64a60]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x10]
push esi
mov byte [esp + ecx + 0x64a58], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [esp + 0x17c]
push edx
call ebx
cmp eax, 0xffffffff
je 0x406727
push 0x80
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 0x17c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0x10]
xor ebp, ebp
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x4068a1
lea esp, [esp]
mov al, byte [esp + edi + 0x64a54]
cmp al, 0xd
je 0x40675c
cmp al, 0xa
je 0x40675c
mov byte [esp + esi + 0x2fd4], al
inc esi
jmp 0x406894
lea edx, [esp + 0x2fd4]
mov byte [esp + esi + 0x2fd4], 0
push edx
xor esi, esi
call fcn.004086d0
add esp, 4
cmp eax, 2
jbe 0x406894
lea eax, [esp + 0x1bd0]
push eax
lea ecx, [esp + 0x2fd8]
push ecx
call fcn.004021c0
lea edx, [esp + 0x1bd8]
push edx
call fcn.004086d0
add esp, 0xc
cmp eax, 2
jbe 0x406894
lea eax, [esp + 0x2bd4]
push eax
lea ecx, [esp + 0x1bd4]
push 2
push ecx
call fcn.00402130
lea edx, [esp + 0x2be0]
push 0x40e7a0
push edx
call fcn.004089e0
add esp, 0x14
test eax, eax
jne 0x406894
push eax
lea eax, [esp + 0x1bd4]
push 0x40c410
push eax
call fcn.00401370
add esp, 0xc
cmp eax, 2
jle 0x406894
lea ecx, [esp + 0x2bd4]
push ecx
dec eax
push eax
lea edx, [esp + 0x1bd8]
push edx
call fcn.00402130
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xbdc]
push ecx
call fcn.00408770
lea edx, [esp + 0x2be8]
push edx
lea eax, [esp + 0xbe4]
push eax
call fcn.00408770
add esp, 0x1c
test ebp, ebp
jne 0x406854
push 0x40e7b0
lea ecx, [esp + 0xbd0]
push ecx
jmp 0x406861
push 0x40e7a8
lea edx, [esp + 0xbd0]
push edx
call fcn.00408770
add esp, 8
lea eax, [esp + 0x564]
push eax
lea ecx, [esp + 0xbd0]
push ecx
call fcn.00408770
lea edx, [esp + 0xbd4]
push 0x40e7a4
push edx
call fcn.00408770
add esp, 0x10
inc ebp
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x406740
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x3e8
call esi
lea eax, [esp + 0xbcc]
push eax
call fcn.004086d0
add esp, 4
test eax, eax
jbe 0x406bb9
lea ecx, [esp + 0xbcc]
push ecx
lea edx, [esp + 0x2ac]
push edx
call fcn.00401e80
add esp, 8
push 0x3e8
call esi
mov ecx, dword [0x411e98]
push 0
push 0
push 0
lea eax, [esp + 0x2b4]
push eax
push 0x40cbec
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x2710
call esi
lea edx, [esp + 0x2a8]
push edx
call ebx
cmp eax, 0xffffffff
je 0x40693c
push 0x80
lea eax, [esp + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea edx, [esp + 0x564]
push edx
call ebx
cmp eax, 0xffffffff
je 0x406bb9
lea eax, [esp + 0xbcc]
push 0x40c401
push eax
call fcn.00408760
lea ecx, [esp + 0x2fdc]
push 0x40c401
push ecx
call fcn.00408760
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea edx, [esp + 0x57c]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x406bb9
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
push 0x61a7f
lea ecx, [esp + 0x64a60]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x10]
push esi
mov byte [esp + edx + 0x64a58], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x564]
push eax
call fcn.00401240
mov eax, dword [esp + 0x14]
add esp, 4
xor esi, esi
xor ebp, ebp
test eax, eax
jbe 0x406bb9
nop
mov al, byte [esp + ebp + 0x64a54]
cmp al, 0xd
je 0x406a0c
cmp al, 0xa
je 0x406a0c
mov byte [esp + esi + 0x2fd4], al
inc esi
jmp 0x406bac
lea ecx, [esp + 0x2fd4]
mov byte [esp + esi + 0x2fd4], 0
push ecx
xor esi, esi
call fcn.004086d0
add esp, 4
cmp eax, 2
jbe 0x406bac
lea edx, [esp + 0x1bd0]
push edx
lea eax, [esp + 0x2fd8]
push eax
call fcn.004021c0
lea ecx, [esp + 0x1bd8]
push ecx
call fcn.004086d0
add esp, 0xc
cmp eax, 2
jbe 0x406bac
push esi
lea edx, [esp + 0x1bd4]
push 0x40e7a0
push edx
call fcn.00401370
add esp, 0xc
test eax, eax
jg 0x406a96
push 1
lea eax, [esp + 0x1bd4]
push 0x40e798
push eax
call fcn.00401370
add esp, 0xc
test eax, eax
jle 0x406bac
push 0
lea ecx, [esp + 0x1bd4]
push 0x40e7a0
push ecx
call fcn.00401370
add esp, 0xc
test eax, eax
jle 0x406b10
lea edx, [esp + 0x690]
push 0x40e7a0
push edx
call fcn.00408760
lea eax, [esp + 0x9a4]
push eax
push 2
lea ecx, [esp + 0x1be0]
push 0x5c
push ecx
call fcn.004020e0
lea edx, [esp + 0x9b4]
push edx
lea eax, [esp + 0x6ac]
push eax
call fcn.00408770
lea ecx, [esp + 0x6b0]
push 0x40bc84
push ecx
call fcn.00408770
add esp, 0x28
mov edi, 1
jmp 0x406bac
test edi, edi
je 0x406bac
push 0
lea edx, [esp + 0x1bd4]
push 0x40e790
push edx
call fcn.00401370
add esp, 0xc
cmp eax, 1
jle 0x406bac
lea ecx, [esp + 0x898]
push ecx
dec eax
push eax
lea edx, [esp + 0x1bd8]
push edx
call fcn.00402130
lea eax, [esp + 0x50c]
push eax
lea ecx, [esp + 0x8a8]
push ecx
call fcn.004021c0
lea edx, [esp + 0x7a8]
push edx
push 0x40bc84
lea eax, [esp + 0x51c]
push eax
lea ecx, [esp + 0x6b0]
push ecx
call fcn.00402080
push 1
lea edx, [esp + 0x7bc]
push 0x40c401
push edx
call fcn.004059a0
lea eax, [esp + 0x7c4]
push 1
push eax
call fcn.00406070
add esp, 0x38
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x4069f0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc64c4
ret