Function at 0x523328
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x523331
mov eax, dword [ebp - 4]
add esp, 0xfffffbc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2440], edx
mov dword [ebp - 0x243c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5236bb
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, 0x5236d4
call fcn.00405184
xor eax, eax
push ebp
push 0x5233be
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 0x5233d2
xor ecx, ecx
mov dl, 1
mov eax, dword [0x51784c]
call fcn.0051a488
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x52368b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x52359d
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 0x523449
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 0x523457
cmp byte [ebp - 5], 0
jne 0x52346f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040485c
jmp 0x523695
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], 1
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 0x52358b
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 0x5234e7
test ebx, ebx
jg 0x523573
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 0x523695
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 0x52353e
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 0x52354d
inc ebx
jne 0x523579
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2733
jne 0x523579
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 0x52356f
cmp eax, dword [esp]
pop edx
pop eax
ja 0x523573
jmp 0x523579
pop edx
pop eax
jle 0x523579
cmp byte [ebp - 5], 0
jne 0x523507
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 0x5235ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523695
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 0x5235d4
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 0x52365c
mov edx, dword [0x59fe68]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
mov ecx, 0x5236f4
call fcn.00405184
mov eax, dword [ebp - 0x10]
call fcn.0040c5c8
test al, al
je 0x52362e
mov eax, dword [ebp - 0x10]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0x243c]
call fcn.00405054
mov eax, dword [ebp - 0x243c]
call fcn.0040c7e0
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 - 0x2440]
call fcn.00405054
mov eax, dword [ebp - 0x2440]
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 0x5236c2
lea eax, [ebp - 0x2440]
mov edx, 2
call fcn.00404e80
lea eax, [ebp - 0x10]
call fcn.00404e5c
ret