Function at 0x58b640
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x58b648
push ecx
push ebx
xor eax, eax
push ebp
push 0x58b9b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.004b5840
test al, al
jne 0x58b978
mov edx, dword [0x5eb904]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x58b9d0
call fcn.00407420
mov eax, dword [ebp - 0x24]
call fcn.00428020
test al, al
je 0x58b709
mov dword [ebp - 8], 1
mov eax, 0x7fffffff
call fcn.00404b04
lea edx, [ebp - 0x34]
call fcn.0041d1ac
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x58b9f4
call fcn.00407420
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0042bee0
mov eax, dword [ebp - 0x28]
call fcn.00428020
test al, al
je 0x58b6e0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x186a1
jne 0x58b698
mov eax, dword [ebp - 0x28]
call fcn.00407230
push eax
mov eax, dword [ebp - 0x24]
call fcn.00407230
push eax
call sub.kernel32.dll_MoveFileW
push 4
push 0
mov eax, dword [ebp - 0x28]
call fcn.00407230
push eax
call sub.kernel32.dll_MoveFileExW
lea eax, [ebp - 0x38]
call fcn.0058b510
mov eax, dword [ebp - 0x38]
call fcn.0049c980
test al, al
jne 0x58b735
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x58ba0c
call fcn.0043fa80
jmp 0x58b978
mov edx, dword [0x5eb904]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
mov ecx, 0x58ba2c
call fcn.00407420
mov edx, dword [0x5eb904]
mov edx, dword [edx]
lea eax, [ebp - 0x40]
mov ecx, 0x58ba50
call fcn.00407420
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0042bcc0
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
mov ecx, 0x58ba6c
call fcn.00407420
mov byte [ebp - 0x1d], 0
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0042bfe0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x58b83f
xor eax, eax
push ebp
push 0x58b838
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x58b7b9
cmp eax, 0
jbe 0x58b822
jmp 0x58b7bb
jle 0x58b822
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x58b7d0
cmp eax, 0x2000000
jae 0x58b822
jmp 0x58b7d2
jge 0x58b822
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 0x18]
xor ecx, ecx
call fcn.00407050
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x18]
call fcn.00406bd0
mov edx, eax
mov eax, dword [ebp - 0x14]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5eb090]
call fcn.004077a8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jle 0x58b81a
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 0x18]
call fcn.00406650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b83f
mov eax, dword [ebp - 0x14]
call fcn.00405038
ret
cmp byte [ebp - 0x1d], 0
je 0x58b8e2
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x58ba84
call fcn.0043fa80
mov dl, 1
mov eax, dword [0x426f08]
call fcn.00405008
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x58b8db
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x58bab8
mov cl, byte [0x58babc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0042ab50
mov eax, dword [ebp - 0x1c]
call fcn.0042ca30
dec eax
test eax, eax
jl 0x58b8c5
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.0042c7e0
mov eax, dword [ebp - 0x44]
call fcn.00428080
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x58b8a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b8e2
mov eax, dword [ebp - 0x1c]
call fcn.00405038
ret
mov eax, dword [ebp - 0xc]
call fcn.00428080
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x5ebca4]
mov eax, dword [eax]
call fcn.005cd480
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5ebca4]
mov eax, dword [eax]
call fcn.005cd4c0
push eax
push 0
lea eax, [ebp - 0x4c]
call fcn.0058b510
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004b5860
test al, al
jne 0x58b940
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x58bacc
call fcn.0043fa80
jmp 0x58b978
call fcn.0049c8c0
test al, al
jne 0x58b95e
mov eax, dword [0x5eba70]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x58baec
call fcn.0043f530
jmp 0x58b978
call fcn.0058c4f0
call fcn.0058c5f0
call fcn.0058b5e0
mov dl, 1
call fcn.0058cbc0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b9bc
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.0040668c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040668c
lea eax, [ebp - 0x18]
call fcn.00406650
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040668c
ret