Function at 0x520684
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x52068d
mov eax, dword [ebp - 4]
add esp, 0xfffffbbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2448], edx
mov dword [ebp - 0x2440], edx
mov dword [ebp - 0x2444], edx
mov dword [ebp - 0x243c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x520a4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x582f38]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
add eax, 0x168
mov ecx, 0x520a64
call fcn.00405138
xor eax, eax
push ebp
push 0x520726
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x168]
mov dl, 1
mov eax, dword [0x41c868]
call fcn.00421bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x164], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52073a
xor ecx, ecx
mov dl, 1
mov eax, dword [0x516564]
call fcn.005191a0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x520a1c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x52092e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.00519294
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00518f24
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.00518fa4
xor eax, eax
push ebp
push 0x5207b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00519054
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5207bf
cmp byte [ebp - 5], 0
jne 0x5207d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404810
jmp 0x520a26
lea eax, [ebp - 0x2435]
xor ecx, ecx
mov edx, 0x421
call fcn.0040374c
lea eax, [ebp - 0x2435]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
add edx, 0x70
mov cl, 0x1e
call fcn.0040363c
mov byte [ebp - 0x2416], 7
lea eax, [ebp - 0x243c]
mov edx, dword [ebp - 4]
add edx, 0x61
call fcn.00405074
mov eax, dword [ebp - 0x243c]
call fcn.004052ec
mov edx, eax
lea eax, [ebp - 0x2415]
call fcn.0040ac08
lea edx, [ebp - 0x2435]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
mov ecx, 0x421
call fcn.00517b3c
mov ebx, eax
test ebx, ebx
jle 0x52091c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
mov ecx, 4
call fcn.00517ccc
mov ebx, eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x520878
test ebx, ebx
jne 0x520904
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00518e4c
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404810
jmp 0x520a26
lea edx, [ebp - 0x2014]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
mov ecx, 0x2000
call fcn.00517ccc
mov ebx, eax
test ebx, ebx
jle 0x5208cf
lea edx, [ebp - 0x2014]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x5208de
inc ebx
jne 0x52090a
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2733
jne 0x52090a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xc]
cdq
cmp edx, dword [esp + 4]
jne 0x520900
cmp eax, dword [esp]
pop edx
pop eax
ja 0x520904
jmp 0x52090a
pop edx
pop eax
jle 0x52090a
cmp byte [ebp - 5], 0
jne 0x520898
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00421704
mov eax, dword [ebp - 0x14]
call fcn.00519060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52093c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520a26
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xc]
cdq
cmp edx, dword [esp + 4]
jne 0x520965
cmp eax, dword [esp]
sete bl
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00403ec0
test byte [ebp - 5], bl
je 0x5209ed
mov eax, dword [0x582f38]
push dword [eax]
push 0x520a84
lea eax, [ebp - 0x2444]
mov edx, dword [ebp - 4]
add edx, 0x61
call fcn.00405074
mov eax, dword [ebp - 0x2444]
lea edx, [ebp - 0x2440]
call fcn.0040a780
push dword [ebp - 0x2440]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004051ac
mov eax, dword [ebp - 0x10]
call fcn.004052ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.004052ec
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp - 4]
push eax
push 0x51fd48
mov eax, dword [ebp - 4]
call fcn.00427bc4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.004052ec
mov edx, eax
lea eax, [ebp - 0x2448]
call fcn.00405008
mov eax, dword [ebp - 0x2448]
call fcn.0040a584
mov eax, dword [ebp - 0x14]
call fcn.00403ec0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520a53
lea eax, [ebp - 0x2448]
mov edx, 4
call fcn.00404e34
lea eax, [ebp - 0x10]
call fcn.00404e10
ret