Function at 0x52539b
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x6dbc18
call fcn.006899cc
sub esp, 0x868
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x525760
mov eax, dword [edi + 8]
lea ecx, [edi + 0xb0]
test eax, eax
jne 0x525480
call fcn.0055c55d
fld qword [0x700c08]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x52547d
mov ebx, dword [ebp + 8]
cmp byte [ebx], 6
je 0x525747
or dword [ebx + 0xc], 0xffffffff
mov byte [ebx], 3
call fcn.004a5ea9
push eax
push 3
lea ecx, [ebp - 0x44]
call fcn.004a5cc2
push 8
pop esi
push dword [ebx + 0xc]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
push str.error
call fcn.00476974
add edi, 0x94
cmp dword [edi + 0x14], esi
jb 0x525428
mov edi, dword [edi]
push edi
push str.transcript
lea ecx, [ebp - 0x44]
call fcn.00476974
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004a5c7a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.004a5d2b
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004a7333
push eax
lea ecx, [ebx + 0x38]
call fcn.00448080
lea ecx, [ebp - 0x74]
call fcn.0044823e
lea eax, [ebp - 0x5c]
push eax
call fcn.004a716d
lea ecx, [ebp - 0x5c]
jmp 0x525742
mov eax, dword [edi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, edi
test eax, eax
jne 0x52574b
mov ebx, dword [ebp + 8]
push ebx
call fcn.00524fc2
push dword [edi + 0xac]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
or dword [edi + 0xac], 0xffffffff
lea eax, [ebp + 8]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
push dword [edi + 8]
call esi
and dword [edi + 8], 0
cmp dword [ebx + 0xc], 0
jne 0x5255e8
lea eax, [edi + 0x64]
cmp dword [eax + 0x14], 8
jb 0x5254e2
mov eax, dword [eax]
lea ecx, [edi + 0x4c]
cmp dword [ecx + 0x14], 8
jb 0x5254ed
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x525508
mov byte [ebx], 6
mov dword [ebx + 8], 0x3e8
jmp 0x5255c1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov byte [ebx], 3
push 0x400
lea eax, [ebp - 0x874]
mov dword [ebx + 0xc], esi
push eax
push esi
call fcn.00471f42
call fcn.004a5ea9
push eax
push 1
lea ecx, [ebp - 0x1c]
call fcn.004a5cc2
and dword [ebp - 4], 0
lea eax, [ebp - 0x874]
push eax
push 0x7084e4
lea ecx, [ebp - 0x1c]
call fcn.00476974
push esi
push str.error
lea ecx, [ebp - 0x1c]
call fcn.00476974
lea eax, [edi + 0x94]
cmp dword [eax + 0x14], 8
jb 0x52556c
mov eax, dword [eax]
push eax
push str.transcript
lea ecx, [ebp - 0x1c]
call fcn.00476974
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004a5c7a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004a5d2b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004a7333
push eax
lea ecx, [ebx + 0x38]
call fcn.00448080
lea ecx, [ebp - 0x74]
call fcn.0044823e
lea eax, [ebp - 0x34]
push eax
call fcn.004a716d
lea ecx, [ebp - 0x34]
call fcn.004a5d2b
cmp byte [0x7e669c], 0
je 0x525747
add edi, 0x94
cmp dword [edi + 0x14], 8
jb 0x5255dc
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x525747
push 8
lea eax, [edi + 0x4c]
mov byte [ebx], 3
pop esi
cmp dword [eax + 0x14], esi
jb 0x5255f8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0xb0]
call fcn.00524beb
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 3
push eax
call fcn.0045b965
lea ecx, [ebx + 0x38]
push eax
call fcn.00448080
lea ecx, [ebp - 0x4c]
call fcn.0044823e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040fad0
call fcn.004a5ea9
push eax
push 4
lea ecx, [ebp - 0x1c]
call fcn.004a5cc2
lea ecx, [ebx + 0x38]
mov dword [ebp - 4], 4
cmp dword [ebx + 0x4c], esi
jb 0x52565e
mov ecx, dword [ebx + 0x38]
push ecx
push 0x7084e4
lea ecx, [ebp - 0x1c]
call fcn.00476974
push dword [ebx + 0xc]
lea ecx, [ebp - 0x1c]
push str.error
call fcn.00476974
add edi, 0x94
mov eax, edi
cmp dword [edi + 0x14], esi
jb 0x52568b
mov eax, dword [edi]
push eax
push str.transcript
lea ecx, [ebp - 0x1c]
call fcn.00476974
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.004a5c7a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004a5d2b
cmp dword [ebx + 0x48], 0
jne 0x525718
call fcn.004a5ea9
push eax
push 2
lea ecx, [ebp - 0x44]
call fcn.004a5cc2
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
push 0x716aac
call fcn.00476974
push dword [ebx + 0xc]
lea ecx, [ebp - 0x44]
push str.error
call fcn.00476974
cmp dword [edi + 0x14], esi
jb 0x5256f2
mov edi, dword [edi]
push edi
push str.transcript
lea ecx, [ebp - 0x44]
call fcn.00476974
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.004a5dae
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.004a5d2b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004a7333
push eax
lea ecx, [ebx + 0x38]
call fcn.00448080
lea ecx, [ebp - 0x74]
call fcn.0044823e
lea eax, [ebp - 0x34]
push eax
call fcn.004a716d
lea ecx, [ebp - 0x34]
call fcn.004a5d2b
xor al, al
jmp 0x525762
mov esi, dword [ebp + 8]
push esi
mov byte [esi], 1
call fcn.00524fc2
cmp dword [edi + 0x18], 0
je 0x525760
mov byte [esi], 2
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4