Function at 0x523704
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x52370d
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 0x523acc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x59fe68]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
add eax, 0x168
mov ecx, 0x523ae4
call fcn.00405184
xor eax, eax
push ebp
push 0x5237a6
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 [0x41f94c]
call fcn.00424ce0
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 0x5237ba
xor ecx, ecx
mov dl, 1
mov eax, dword [0x51784c]
call fcn.0051a488
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x523a9c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5239ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.0051a57c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0051a20c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.0051a28c
xor eax, eax
push ebp
push 0x523831
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.0051a33c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52383f
cmp byte [ebp - 5], 0
jne 0x523857
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040485c
jmp 0x523aa6
lea eax, [ebp - 0x2435]
xor ecx, ecx
mov edx, 0x421
call fcn.00403774
lea eax, [ebp - 0x2435]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
add edx, 0x70
mov cl, 0x1e
call fcn.00403664
mov byte [ebp - 0x2416], 7
lea eax, [ebp - 0x243c]
mov edx, dword [ebp - 4]
add edx, 0x61
call fcn.004050c0
mov eax, dword [ebp - 0x243c]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0x2415]
call fcn.0040ce64
lea edx, [ebp - 0x2435]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
mov ecx, 0x421
call fcn.00518e24
mov ebx, eax
test ebx, ebx
jle 0x52399c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
mov ecx, 4
call fcn.00518fb4
mov ebx, eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x5238f8
test ebx, ebx
jne 0x523984
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0051a134
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040485c
jmp 0x523aa6
lea edx, [ebp - 0x2014]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
mov ecx, 0x2000
call fcn.00518fb4
mov ebx, eax
test ebx, ebx
jle 0x52394f
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 0x52395e
inc ebx
jne 0x52398a
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2733
jne 0x52398a
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 0x523980
cmp eax, dword [esp]
pop edx
pop eax
ja 0x523984
jmp 0x52398a
pop edx
pop eax
jle 0x52398a
cmp byte [ebp - 5], 0
jne 0x523918
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.004247e8
mov eax, dword [ebp - 0x14]
call fcn.0051a348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5239bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523aa6
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 0x5239e5
cmp eax, dword [esp]
sete bl
add esp, 8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00403f0c
test byte [ebp - 5], bl
je 0x523a6d
mov eax, dword [0x59fe68]
push dword [eax]
push 0x523b04
lea eax, [ebp - 0x2444]
mov edx, dword [ebp - 4]
add edx, 0x61
call fcn.004050c0
mov eax, dword [ebp - 0x2444]
lea edx, [ebp - 0x2440]
call fcn.0040c9dc
push dword [ebp - 0x2440]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004051f8
mov eax, dword [ebp - 0x10]
call fcn.00405338
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.00405338
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp - 4]
push eax
push 0x522dc8
mov eax, dword [ebp - 4]
call fcn.0042aca8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0x2448]
call fcn.00405054
mov eax, dword [ebp - 0x2448]
call fcn.0040c7e0
mov eax, dword [ebp - 0x14]
call fcn.00403f0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523ad3
lea eax, [ebp - 0x2448]
mov edx, 4
call fcn.00404e80
lea eax, [ebp - 0x10]
call fcn.00404e5c
ret