Function at 0x58c5e0
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 0x58c9ab
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
mov eax, dword [select]
push dword [eax + 0x16c]
push 0x58c9c4
push dword [ebp - 4]
push 0x58c9dc
lea eax, [ebp - 8]
mov edx, 4
call fcn.00405728
mov edx, dword [select]
mov edx, dword [edx + 0x16c]
lea eax, [ebp - 0x144]
mov ecx, 0x58c9c4
call fcn.004056ac
mov eax, dword [ebp - 0x144]
call fcn.0040afd4
mov eax, dword [ebp - 8]
call fcn.0040ad94
test al, al
je 0x58c985
mov byte [ebp - 0x21], 0
xor esi, esi
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.0040ac88
mov ebx, eax
test ebx, ebx
jle 0x58c6bf
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.0040ad38
mov esi, eax
mov eax, esi
sub eax, 4
mov ecx, 0xa0
cdq
idiv ecx
test edx, edx
je 0x58c6b9
mov byte [ebp - 0x21], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x21], 0
je 0x58c906
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040ae64
call fcn.0040d634
fstp qword [ebp - 0x30]
wait
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 0x58c9ec
call fcn.0040e384
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x58ca08
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 0x58c985
mov edx, 0x40
mov eax, dword [ebp - 0xc]
call fcn.0040ac88
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 0x58c906
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
call fcn.0040ace0
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.0040ad0c
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x58c8f7
inc esi
lea edx, [ebp - 0x140]
mov ecx, 0x70
mov eax, ebx
call fcn.0040ace0
cmp eax, 0x70
jne 0x58c8f0
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.0048c9f8
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.0040ad0c
dec esi
jne 0x58c7a8
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.0040ac88
mov ebx, eax
test ebx, ebx
jle 0x58c985
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
call fcn.0040ace0
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x58c97a
inc esi
lea edx, [ebp - 0xd0]
mov ecx, 0xa0
mov eax, ebx
call fcn.0040ace0
cmp eax, 0xa0
jne 0x58c977
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.0041fa48
dec esi
jne 0x58c931
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 0x58c9b2
lea eax, [ebp - 0x144]
call fcn.00405394
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004053b8
ret