Function at 0x582f60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x582f68
push ecx
push ebx
xor eax, eax
push ebp
push 0x5832d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.004b54a0
test al, al
jne 0x583293
mov edx, dword [0x5dd9e4]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x5832ec
call fcn.00407404
mov eax, dword [ebp - 0x24]
call fcn.00428340
test al, al
je 0x583029
mov dword [ebp - 8], 1
mov eax, 0x7fffffff
call fcn.00404b04
lea edx, [ebp - 0x34]
call fcn.0041d1d8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x583310
call fcn.00407404
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0042c190
mov eax, dword [ebp - 0x28]
call fcn.00428340
test al, al
je 0x583000
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x186a1
jne 0x582fb8
mov eax, dword [ebp - 0x28]
call fcn.00407214
push eax
mov eax, dword [ebp - 0x24]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileW
push 4
push 0
mov eax, dword [ebp - 0x28]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileExW
lea eax, [ebp - 0x38]
call fcn.00582e30
mov eax, dword [ebp - 0x38]
call fcn.0049c5f0
test al, al
jne 0x583055
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x583328
call fcn.0043fc70
jmp 0x583293
mov edx, dword [0x5dd9e4]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
mov ecx, 0x583348
call fcn.00407404
mov edx, dword [0x5dd9e4]
mov edx, dword [edx]
lea eax, [ebp - 0x40]
mov ecx, 0x58336c
call fcn.00407404
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0042bf70
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
mov ecx, 0x583388
call fcn.00407404
mov byte [ebp - 0x1d], 0
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0042c290
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x58315f
xor eax, eax
push ebp
push 0x583158
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 0x5830d9
cmp eax, 0
jbe 0x583142
jmp 0x5830db
jle 0x583142
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5830f0
cmp eax, 0x2000000
jae 0x583142
jmp 0x5830f2
jge 0x583142
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 0x18]
xor ecx, ecx
call fcn.00407034
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x18]
call fcn.00406bb4
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 [0x5dd180]
call fcn.0040778c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jle 0x58313a
mov byte [ebp - 0x1d], 1
lea eax, [ebp - 0x18]
call fcn.00406634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58315f
mov eax, dword [ebp - 0x14]
call fcn.00405038
ret
cmp byte [ebp - 0x1d], 0
je 0x5831fd
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x5833a0
call fcn.0043fc70
mov dl, 1
mov eax, dword [0x427230]
call fcn.00405008
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5831f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, byte [0x5833c8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0042adf0
mov eax, dword [ebp - 0x1c]
call fcn.0042ccd0
dec eax
test eax, eax
jl 0x5831e0
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.0042ca80
mov eax, dword [ebp - 0x44]
call fcn.004283a0
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x5831c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5831fd
mov eax, dword [ebp - 0x1c]
call fcn.00405038
ret
mov eax, dword [ebp - 0xc]
call fcn.004283a0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x5ddd78]
mov eax, dword [eax]
call fcn.005c0800
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5ddd78]
mov eax, dword [eax]
call fcn.005c0840
push eax
push 0
lea eax, [ebp - 0x4c]
call fcn.00582e30
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004b54c0
test al, al
jne 0x58325b
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x5833d8
call fcn.0043fc70
jmp 0x583293
call fcn.0049c530
test al, al
jne 0x583279
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x5833f8
call fcn.0043f720
jmp 0x583293
call fcn.00583e00
call fcn.00583f00
call fcn.00582f00
mov dl, 1
call fcn.005844d0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5832d7
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.00406670
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00406670
lea eax, [ebp - 0x18]
call fcn.00406634
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406670
ret