Function at 0x57e060
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405814
xor eax, eax
push ebp
push 0x57e42b
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
mov eax, dword [setsockopt]
push dword [eax + 0x16c]
push 0x57e444
push dword [ebp - 4]
push 0x57e45c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00405728
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x16c]
lea eax, [ebp - 0x144]
mov ecx, 0x57e444
call fcn.004056ac
mov eax, dword [ebp - 0x144]
call fcn.0040afe0
mov eax, dword [ebp - 8]
call fcn.0040ada0
test al, al
je 0x57e405
mov byte [ebp - 0x21], 0
xor esi, esi
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.0040ac94
mov ebx, eax
test ebx, ebx
jle 0x57e13f
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.0040ad44
mov esi, eax
mov eax, esi
sub eax, 4
mov ecx, 0xa0
cdq
idiv ecx
test edx, edx
je 0x57e139
mov byte [ebp - 0x21], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x21], 0
je 0x57e386
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040ae70
call fcn.0040d640
fstp qword [ebp - 0x30]
wait
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 0x57e46c
call fcn.0040e390
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x57e488
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405728
mov eax, dword [ebp - 0xc]
call fcn.00405824
push eax
mov eax, dword [ebp - 8]
call fcn.00405824
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp - 8]
call fcn.00405824
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, esi
sub eax, 4
mov ecx, 0x70
cdq
idiv ecx
test edx, edx
jne 0x57e405
mov edx, 0x40
mov eax, dword [ebp - 0xc]
call fcn.0040ac94
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00405824
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x57e386
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
call fcn.0040acec
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.0040ad18
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x57e377
inc esi
lea edx, [ebp - 0x140]
mov ecx, 0x70
mov eax, ebx
call fcn.0040acec
cmp eax, 0x70
jne 0x57e370
lea eax, [ebp - 0xd0]
xor ecx, ecx
mov edx, 0xa0
call fcn.00403ae0
movzx eax, word [ebp - 0x12d]
mov word [ebp - 0xbd], ax
mov eax, dword [ebp - 0x131]
mov dword [ebp - 0xc1], eax
movzx eax, word [ebp - 0x12b]
mov word [ebp - 0xb5], ax
movzx eax, word [ebp - 0x129]
mov word [ebp - 0xb3], ax
movzx eax, byte [ebp - 0x127]
mov byte [ebp - 0xbb], al
movzx eax, byte [ebp - 0x126]
mov byte [ebp - 0xba], al
push dword [ebp - 0x121]
push dword [ebp - 0x125]
call fcn.004e55c8
mov dword [ebp - 0xb9], eax
mov eax, dword [ebp - 0x11d]
mov dword [ebp - 0xb1], eax
mov al, byte [ebp - 0x119]
mov byte [ebp - 0xad], al
push esi
push edi
lea esi, [ebp - 0x118]
lea edi, [ebp - 0xac]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov byte [ebp - 0x81], 0
lea eax, [ebp - 0xd0]
lea edx, [ebp - 0x140]
mov cl, 0xe
call fcn.004039d0
movzx eax, byte [ebp - 0xed]
mov byte [ebp - 0x4f], al
movzx eax, byte [ebp - 0xec]
mov byte [ebp - 0x4e], al
movzx eax, byte [ebp - 0xeb]
mov byte [ebp - 0x4d], al
movzx eax, byte [ebp - 0xea]
mov byte [ebp - 0x4c], al
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0xd0]
mov ecx, 0xa0
mov eax, dword [ebp - 0x1c]
call fcn.0040ad18
dec esi
jne 0x57e228
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.0040ac94
mov ebx, eax
test ebx, ebx
jle 0x57e405
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
call fcn.0040acec
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x57e3fa
inc esi
lea edx, [ebp - 0xd0]
mov ecx, 0xa0
mov eax, ebx
call fcn.0040acec
cmp eax, 0xa0
jne 0x57e3f7
mov eax, 0xa0
call fcn.00402f94
push esi
mov edi, eax
lea esi, [ebp - 0xd0]
mov ecx, 0x28
rep movsd dword es:[edi], dword [esi]
pop esi
xor edx, edx
mov dword [eax + 0x98], edx
mov edx, eax
mov eax, dword [ebp - 0x18]
call fcn.0041fa54
dec esi
jne 0x57e3b1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov edi, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57e432
lea eax, [ebp - 0x144]
call fcn.00405394
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004053b8
ret