Function at 0x582a60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x582a68
push ecx
push ebx
xor eax, eax
push ebp
push 0x582dd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.004b5270
test al, al
jne 0x582d93
mov edx, dword [0x5dc9c4]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x582dec
call fcn.00407404
mov eax, dword [ebp - 0x24]
call fcn.004283b0
test al, al
je 0x582b29
mov dword [ebp - 8], 1
mov eax, 0x7fffffff
call fcn.00404b04
lea edx, [ebp - 0x34]
call fcn.0041d248
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x582e10
call fcn.00407404
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0042c200
mov eax, dword [ebp - 0x28]
call fcn.004283b0
test al, al
je 0x582b00
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x186a1
jne 0x582ab8
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.00582930
mov eax, dword [ebp - 0x38]
call fcn.0049c3c0
test al, al
jne 0x582b55
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x582e28
call fcn.0043fce0
jmp 0x582d93
mov edx, dword [0x5dc9c4]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
mov ecx, 0x582e48
call fcn.00407404
mov edx, dword [0x5dc9c4]
mov edx, dword [edx]
lea eax, [ebp - 0x40]
mov ecx, 0x582e6c
call fcn.00407404
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0042bfe0
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
mov ecx, 0x582e88
call fcn.00407404
mov byte [ebp - 0x1d], 0
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0042c300
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x582c5f
xor eax, eax
push ebp
push 0x582c58
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 0x582bd9
cmp eax, 0
jbe 0x582c42
jmp 0x582bdb
jle 0x582c42
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x582bf0
cmp eax, 0x2000000
jae 0x582c42
jmp 0x582bf2
jge 0x582c42
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 [0x5dc160]
call fcn.0040778c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jle 0x582c3a
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 0x582c5f
mov eax, dword [ebp - 0x14]
call fcn.00405038
ret
cmp byte [ebp - 0x1d], 0
je 0x582cfd
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x582ea0
call fcn.0043fce0
mov dl, 1
mov eax, dword [0x4272a0]
call fcn.00405008
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x582cf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, byte [0x582ec8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0042ae60
mov eax, dword [ebp - 0x1c]
call fcn.0042cd40
dec eax
test eax, eax
jl 0x582ce0
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.0042caf0
mov eax, dword [ebp - 0x44]
call fcn.00428410
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x582cc2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582cfd
mov eax, dword [ebp - 0x1c]
call fcn.00405038
ret
mov eax, dword [ebp - 0xc]
call fcn.00428410
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x5dcd54]
mov eax, dword [eax]
call fcn.005c0150
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5dcd54]
mov eax, dword [eax]
call fcn.005c0190
push eax
push 0
lea eax, [ebp - 0x4c]
call fcn.00582930
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004b5290
test al, al
jne 0x582d5b
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x582ed8
call fcn.0043fce0
jmp 0x582d93
call fcn.0049c300
test al, al
jne 0x582d79
mov eax, dword [0x5dcb2c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x582ef8
call fcn.0043f790
jmp 0x582d93
call fcn.00583900
call fcn.00583a00
call fcn.00582a00
mov dl, 1
call fcn.00583fd0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582dd7
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