Function at 0x5202a8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x5202b1
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 0x52063b
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, 0x520654
call fcn.00405138
xor eax, eax
push ebp
push 0x52033e
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 0x520352
xor ecx, ecx
mov dl, 1
mov eax, dword [0x516564]
call fcn.005191a0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x52060b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x52051d
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 0x5203c9
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 0x5203d7
cmp byte [ebp - 5], 0
jne 0x5203ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404810
jmp 0x520615
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], 1
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 0x52050b
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 0x520467
test ebx, ebx
jg 0x5204f3
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 0x520615
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 0x5204be
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 0x5204cd
inc ebx
jne 0x5204f9
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2733
jne 0x5204f9
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 0x5204ef
cmp eax, dword [esp]
pop edx
pop eax
ja 0x5204f3
jmp 0x5204f9
pop edx
pop eax
jle 0x5204f9
cmp byte [ebp - 5], 0
jne 0x520487
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 0x52052b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520615
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 0x520554
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 0x5205dc
mov edx, dword [0x582f38]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
mov ecx, 0x520674
call fcn.00405138
mov eax, dword [ebp - 0x10]
call fcn.0040a36c
test al, al
je 0x5205ae
mov eax, dword [ebp - 0x10]
call fcn.004052ec
mov edx, eax
lea eax, [ebp - 0x243c]
call fcn.00405008
mov eax, dword [ebp - 0x243c]
call fcn.0040a584
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 - 0x2440]
call fcn.00405008
mov eax, dword [ebp - 0x2440]
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 0x520642
lea eax, [ebp - 0x2440]
mov edx, 2
call fcn.00404e34
lea eax, [ebp - 0x10]
call fcn.00404e10
ret