Function at 0x402df0
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41105c
push eax
mov dword fs:[0], esp
sub esp, 0x48c
push ebx
push ebp
mov ebp, dword [esp + 0x4a4]
push esi
push edi
push ebp
call fcn.00402610
add esp, 4
test eax, eax
jne 0x40349b
lea eax, [esp + 0x7c]
push eax
push 0
push 0x414638
push 0x4475fc
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x402e4a
or eax, 0xffffffff
jmp 0x40349d
mov edx, dword [esp + 0x4b4]
lea ecx, [esp + 0x7c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x7c]
push ebp
push eax
call fcn.004013e0
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
push 0x80
push ebp
mov dword [esp + 0x1c], ebx
call esi
push ebp
call fcn.00402bd0
add esp, 4
test al, al
jne 0x402ea1
push ebx
push ebp
call esi
or eax, 0xffffffff
jmp 0x40349d
mov ecx, 0xc7
xor eax, eax
lea edi, [esp + 0x180]
push eax
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x17]
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
call fcn.00404fb0
mov edx, dword [esp + 0x4b0]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00405480
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x4a4], 0
test edi, edi
jne 0x402ef9
mov edi, 0x4121e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x284]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x17]
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00404fb0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.00405480
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x4a4], 1
test edi, edi
jne 0x402f5c
mov edi, 0x4121e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x180]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x17]
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
call fcn.00404fb0
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00405480
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x4a4], 2
test edi, edi
jne 0x402fc5
mov edi, 0x4121e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x388]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x17]
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
call fcn.00404fb0
mov edi, 0x4475fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4475fc
lea ecx, [esp + 0x30]
call fcn.00405480
mov edi, str.tempfile.exe
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x4a4], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.tempfile.exe
lea ecx, [esp + 0x30]
call fcn.004053c0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40304d
mov eax, 0x4121e8
push eax
call fcn.00402c00
add esp, 4
test al, al
je 0x4030b6
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4a8], 2
call fcn.00404fb0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4a8], 1
call fcn.00404fb0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a8], 0
call fcn.00404fb0
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4a8], 0xffffffff
call fcn.00404fb0
jmp 0x40349b
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4030c3
mov eax, 0x4121e8
lea edx, [esp + 0x58]
push edx
push eax
call fcn.00407661
add esp, 8
test eax, eax
je 0x4030e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.prg_fail__the_error_is__d_n
call fcn.00407af0
add esp, 8
mov eax, dword [esp + 0x6c]
push eax
push str.the_file_size_is__d_n_r
mov dword [esp + 0x49c], eax
call fcn.00407af0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x40310f
mov eax, 0x4121e8
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.00407661
mov eax, dword [esp + 0x74]
push eax
push str.the_file_size_is__d_n_r
mov dword [esp + 0x4a0], eax
call fcn.00407af0
mov eax, dword [esp + 0x4c]
add esp, 0x10
test eax, eax
jne 0x403140
mov eax, 0x4121e8
lea edx, [esp + 0x58]
push edx
push eax
call fcn.00407661
mov eax, dword [esp + 0x74]
push eax
push str.the_file_size_is__d_n_r
mov dword [esp + 0x49c], eax
call fcn.00407af0
mov eax, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x49c]
mov edx, dword [esp + 0x4a4]
add ecx, eax
lea eax, [ecx + edx + 0x31c]
push eax
push str.the_finial_size_is__d_n_r
mov dword [esp + 0x4b0], eax
call fcn.00407af0
mov eax, dword [esp + 0x34]
add esp, 0x18
test eax, eax
jne 0x4031a1
mov eax, 0x4121e8
push 0x414554
push eax
call fcn.0040710f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4031cc
push str.read_host_file_fail_
call fcn.00407af0
mov eax, dword [esp + 0x18]
add esp, 4
push eax
jmp 0x40305b
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4031d9
mov eax, 0x4121e8
push 0x414554
push eax
call fcn.0040710f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40320c
push str.read_client_file_fail
call fcn.00407af0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x4b0]
add esp, 4
push ecx
push edx
jmp 0x40305c
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x403219
mov eax, 0x4121e8
push 0x414554
push eax
call fcn.0040710f
mov edi, eax
add esp, 8
test edi, edi
jne 0x40324c
push str.read_unbind_file_fail
call fcn.00407af0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4b0]
add esp, 4
push eax
push ecx
jmp 0x40305c
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x403259
mov eax, 0x4121e8
push 0x414380
push eax
call fcn.0040710f
mov esi, eax
add esp, 8
test esi, esi
jne 0x403296
push str.write_tem_file_fail
call fcn.00407af0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x4b0]
add esp, 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x2c]
jmp 0x4033eb
push 0
push 0
push ebx
call fcn.00407ef6
push 0
push 0
push ebp
call fcn.00407ef6
push 0
push 0
push edi
call fcn.00407ef6
push 0
push 0
push esi
call fcn.00407ef6
push edi
call fcn.00407fa6
add esp, 0x34
cmp eax, 0xffffffff
je 0x4032e1
push esi
push eax
call fcn.00407f82
push edi
call fcn.00407fa6
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4032cc
push ebx
call fcn.00407fa6
add esp, 4
cmp eax, 0xffffffff
je 0x403304
push esi
push eax
call fcn.00407f82
push ebx
call fcn.00407fa6
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4032ef
push ebp
call fcn.00407fa6
add esp, 4
cmp eax, 0xffffffff
je 0x403327
push esi
push eax
call fcn.00407f82
push ebp
call fcn.00407fa6
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403312
push esi
push 0x31c
lea ecx, [esp + 0x188]
push 1
push ecx
call fcn.00406fe5
push esi
push 0x5e
call fcn.00407f82
push esi
push 0x5a
call fcn.00407f82
push esi
push 0x5a
call fcn.00407f82
push edi
call fcn.00406f8f
push ebx
call fcn.00406f8f
push ebp
call fcn.00406f8f
push esi
call fcn.00406f8f
mov eax, dword [esp + 0x64]
add esp, 0x38
test eax, eax
jne 0x40337c
mov eax, 0x4121e8
lea edx, [esp + 0x58]
push edx
push eax
call fcn.00407661
mov eax, dword [esp + 0x74]
push eax
push str.the_size_of_binds_file_is__d
call fcn.00407af0
push str.done_n
call fcn.00407af0
add esp, 0x14
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x2c]
xor esi, esi
cmp ecx, esi
jne 0x4033bd
mov ecx, 0x4121e8
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x4033ca
mov eax, 0x4121e8
push ecx
push eax
call fcn.00402ba0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4b4]
add esp, 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x40340b
mov al, byte [ecx - 1]
test al, al
je 0x403401
cmp al, 0xff
je 0x403401
dec al
mov byte [ecx - 1], al
jmp 0x40340b
dec ecx
push ecx
call fcn.00406b20
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], esi
cmp ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x40343b
mov al, byte [ecx - 1]
test al, al
je 0x403431
cmp al, 0xff
je 0x403431
dec al
mov byte [ecx - 1], al
jmp 0x40343b
dec ecx
push ecx
call fcn.00406b20
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x40346b
mov al, byte [ecx - 1]
test al, al
je 0x403461
cmp al, 0xff
je 0x403461
dec al
mov byte [ecx - 1], al
jmp 0x40346b
dec ecx
push ecx
call fcn.00406b20
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x40349b
mov al, byte [ecx - 1]
test al, al
je 0x403491
cmp al, 0xff
je 0x403491
dec al
mov byte [ecx - 1], al
jmp 0x40349b
dec ecx
push ecx
call fcn.00406b20
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x498
ret