Function at 0x509928
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x509930
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x509c0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jge 0x509967
mov byte [ebp - 6], 1
jmp 0x509bf1
mov edx, 0x509c24
mov eax, dword [ebp - 4]
call fcn.00511784
cmp byte [ebp - 5], 0
je 0x50998a
mov eax, dword [ebp - 4]
mov byte [eax + 0x19], 1
mov dword [ebp - 0xc], 5
jmp 0x509991
mov dword [ebp - 0xc], 0xb
mov ecx, 0x3c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00511980
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0
je 0x5099ba
push 0x1388
call sub.kernel32.dll_Sleep_1
jmp 0x5099c1
push 0x32
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x527b70]
mov eax, dword [eax]
call fcn.004659ec
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x509ba7
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
mov edx, 0x509c58
call fcn.004054b4
mov eax, dword [ebp - 0x1c]
call fcn.004dc810
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.004dc810
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a838
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
call fcn.00409758
mov eax, dword [ebp - 0x18]
mov edx, 0x509c70
call fcn.004055f8
je 0x509a8c
mov eax, dword [ebp - 0x18]
mov edx, 0x509c80
call fcn.004055f8
je 0x509a8c
mov eax, dword [ebp - 0x18]
mov edx, 0x509c90
call fcn.004055f8
je 0x509a8c
mov eax, dword [ebp - 0x18]
mov edx, 0x509ca0
call fcn.004055f8
je 0x509a8c
mov eax, dword [ebp - 0x18]
mov edx, 0x509cb0
call fcn.004055f8
jne 0x509b44
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
mov edx, 0x509cbc
call fcn.004054b4
mov eax, dword [ebp - 0x2c]
call fcn.004056ac
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x509b3f
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.004056ac
push eax
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x38]
push eax
mov edx, 0x509c58
pop eax
call fcn.004054b4
mov eax, dword [ebp - 0x38]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x509b3a
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x509ba7
inc dword [ebp - 0x10]
jmp 0x509ba7
inc dword [ebp - 0x10]
jmp 0x509ba7
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.004056ac
push eax
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x40]
push eax
mov edx, 0x509c58
pop eax
call fcn.004054b4
mov eax, dword [ebp - 0x40]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x509ba4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x509ba7
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x10]
jg 0x5099d7
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00511948
cmp dword [ebp - 0x14], 0x3c
jge 0x509bde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jge 0x5099a5
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00511980
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509c13
lea eax, [ebp - 0x40]
mov edx, 0xb
call fcn.0040520c
ret