Function at 0x521584
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x52158c
push ecx
push ebx
xor eax, eax
push ebp
push 0x521cbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2f4]
call fcn.00477c60
test eax, eax
je 0x521c75
xor eax, eax
push ebp
push 0x521c6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2f4]
mov eax, dword [eax + 0x22c]
call fcn.00474580
dec eax
test eax, eax
jl 0x5216ef
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2f4]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 4]
call fcn.004745b0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov edx, 3
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc], 0
je 0x5216e3
mov eax, dword [ebp - 0xc]
mov edx, 0x521cd4
call fcn.00404b68
je 0x5216e3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d4a4
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.00404804
mov eax, dword [ebp - 0xc]
call fcn.0051fbd0
mov eax, dword [ebp - 0xc]
call fcn.0048500c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x5216e3
lea eax, [ebp - 0x2c]
mov ecx, 0x521ce0
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0x2c]
call fcn.00409308
test al, al
je 0x5216e3
lea eax, [ebp - 0x30]
mov ecx, 0x521ce0
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5216e3
cmp dword [ebp - 0x18], 0
jne 0x5216cd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x5216e3
mov ecx, 0x521d14
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
inc dword [ebp - 4]
dec dword [ebp - 0x20]
jne 0x5215fa
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2f4]
call fcn.00477c60
cmp eax, dword [ebp - 0x18]
je 0x521c60
cmp dword [ebp - 0x18], 0
je 0x52196f
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, 3
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
call fcn.0040d4a4
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x521d34
call fcn.00409fbc
mov eax, dword [ebp - 0x38]
mov edx, 0x521d58
call fcn.005212ac
pop ecx
lea eax, [ebp - 0x44]
mov ecx, 0x521ce0
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x52194f
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x318]
call fcn.0040d4a4
push dword [ebp - 0x4c]
push dword [ebp - 0xc]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404ae4
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x1c]
call fcn.004096c4
cmp dword [ebp - 0x1c], 0
je 0x5217f1
mov eax, dword [ebp - 0x1c]
call fcn.0040933c
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.00409308
test al, al
je 0x521943
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0x58]
call fcn.00404c1c
push eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x60]
call fcn.00404c1c
push eax
call sub.kernel32.dll_MoveFileA
test eax, eax
jne 0x521943
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x5218c3
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x64]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x64]
call fcn.00404c1c
push eax
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0x68]
call fcn.00404c1c
push eax
call sub.kernel32.dll_MoveFileA
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x521874
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, 0x521d68
call fcn.00409fbc
mov ecx, dword [ebp - 0x70]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
inc dword [ebp - 4]
dec dword [ebp - 0x20]
jne 0x52179d
lea eax, [ebp - 0x90]
mov ecx, 0x521ce0
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0x90]
mov dl, 1
call fcn.00484ad8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2f4]
call fcn.00477c60
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xc]
mov edx, 3
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc], 0
je 0x521c60
mov eax, dword [ebp - 0xc]
mov edx, 0x521cd4
call fcn.00404b68
je 0x521c60
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0xc]
call fcn.0040d4a4
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0xc]
call fcn.00404804
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x521d94
call fcn.00409fbc
mov eax, dword [ebp - 0x98]
mov edx, 0x521d58
call fcn.005212ac
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00521338
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x521c3c
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x9c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x318]
call fcn.0040d4a4
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xa0]
pop eax
call fcn.00404a2c
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x1c]
call fcn.004096c4
cmp dword [ebp - 0x1c], 0
je 0x521a91
mov eax, dword [ebp - 0x1c]
call fcn.0040933c
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa4]
call fcn.00409308
test al, al
je 0x521ad5
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa8]
mov dl, 1
call fcn.00484ad8
lea ecx, [ebp - 0xac]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xac]
call fcn.00404c1c
push eax
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0xb0]
call fcn.00404c1c
push eax
call sub.kernel32.dll_MoveFileA
test eax, eax
jne 0x521c30
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x521baa
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0xb8]
call fcn.00404c1c
push eax
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc0]
call fcn.00404c1c
push eax
call sub.kernel32.dll_MoveFileA
inc dword [ebp - 8]
dec dword [ebp - 0x24]
jne 0x521b49
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, 0x521dc0
call fcn.00409fbc
mov ecx, dword [ebp - 0xc4]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
inc dword [ebp - 4]
dec dword [ebp - 0x20]
jne 0x521a37
lea eax, [ebp - 0xd4]
mov ecx, 0x521ce0
mov edx, dword [ebp - 0xc]
call fcn.00404a70
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521c75
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521cc4
lea eax, [ebp - 0xd4]
mov edx, 0x15
call fcn.00404790
lea eax, [ebp - 0x70]
mov edx, 0xc
call fcn.00404790
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00404790
lea eax, [ebp - 0x1c]
call fcn.0040476c
lea eax, [ebp - 0xc]
call fcn.0040476c
ret