Function at 0x503693
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x6b3589
call fcn.00664608
sub esp, 0x870
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x503a65
mov eax, dword [edi + 8]
lea ecx, [edi + 0xb0]
test eax, eax
jne 0x503778
call fcn.0053a962
fld qword [0x6d8d40]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x503775
mov ebx, dword [ebp + 8]
cmp byte [ebx], 6
je 0x503a4c
or dword [ebx + 0xc], 0xffffffff
mov byte [ebx], 3
call fcn.004878f8
push eax
push 3
lea ecx, [ebp - 0x48]
call fcn.00487711
add edi, 0x94
push 8
pop esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], esi
jb 0x503710
mov edi, dword [edi]
push dword [ebx + 0xc]
lea ecx, [ebp - 0x48]
push str.error
call fcn.00458a40
push edi
push str.transcript
lea ecx, [ebp - 0x48]
call fcn.00458a40
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.004876c9
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.0048777a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00488de7
push eax
lea ecx, [ebx + 0x38]
call fcn.00427924
lea ecx, [ebp - 0x7c]
call fcn.00427afc
lea eax, [ebp - 0x64]
push eax
call fcn.00488c25
lea ecx, [ebp - 0x64]
jmp 0x503a47
mov eax, dword [edi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, edi
test eax, eax
jne 0x503a50
mov ebx, dword [ebp + 8]
push ebx
call fcn.005032ba
push dword [edi + 0xac]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
or dword [edi + 0xac], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
push dword [edi + 8]
call esi
and dword [edi + 8], 0
cmp dword [ebx + 0xc], 0
push 8
pop esi
jne 0x5038ea
lea eax, [edi + 0x64]
cmp dword [eax + 0x14], esi
jb 0x5037dc
mov eax, dword [eax]
lea ecx, [edi + 0x4c]
cmp dword [ecx + 0x14], esi
jb 0x5037e6
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x503801
mov byte [ebx], 6
mov dword [ebx + 8], 0x3e8
jmp 0x5038c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x400
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x54], eax
push ecx
push eax
mov byte [ebx], 3
mov dword [ebx + 0xc], eax
call fcn.00454114
call fcn.004878f8
push eax
push 1
lea ecx, [ebp - 0x20]
call fcn.00487711
and dword [ebp - 4], 0
lea eax, [edi + 0x94]
mov dword [ebp + 8], eax
cmp dword [eax + 0x14], esi
jb 0x503849
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x87c]
push eax
push 0x6e050c
lea ecx, [ebp - 0x20]
call fcn.00458a40
push dword [ebp - 0x54]
lea ecx, [ebp - 0x20]
push str.error
call fcn.00458a40
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
push str.transcript
call fcn.00458a40
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.004876c9
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0048777a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00488de7
push eax
lea ecx, [ebx + 0x38]
call fcn.00427924
lea ecx, [ebp - 0x7c]
call fcn.00427afc
lea eax, [ebp - 0x38]
push eax
call fcn.00488c25
lea ecx, [ebp - 0x38]
call fcn.0048777a
cmp byte [0x7b6c7c], 0
je 0x503a4c
add edi, 0x94
cmp dword [edi + 0x14], esi
jb 0x5038de
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x503a4c
lea eax, [edi + 0x4c]
mov byte [ebx], 3
cmp dword [eax + 0x14], esi
jb 0x5038f7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0xb0]
call fcn.00502ee7
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 3
push eax
call fcn.0043bbba
lea ecx, [ebx + 0x38]
push eax
call fcn.00427924
lea ecx, [ebp - 0x50]
call fcn.00427afc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00410858
call fcn.004878f8
push eax
push 4
lea ecx, [ebp - 0x20]
call fcn.00487711
add edi, 0x94
mov dword [ebp - 4], 4
mov dword [ebp + 8], edi
cmp dword [edi + 0x14], esi
jb 0x503965
mov eax, dword [edi]
mov dword [ebp + 8], eax
lea ecx, [ebx + 0x38]
cmp dword [ebx + 0x4c], esi
jb 0x503970
mov ecx, dword [ebx + 0x38]
push ecx
push 0x6e050c
lea ecx, [ebp - 0x20]
call fcn.00458a40
push dword [ebx + 0xc]
lea ecx, [ebp - 0x20]
push str.error
call fcn.00458a40
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
push str.transcript
call fcn.00458a40
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.004876c9
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0048777a
cmp dword [ebx + 0x48], 0
jne 0x503a1d
call fcn.004878f8
push eax
push 2
lea ecx, [ebp - 0x48]
call fcn.00487711
mov byte [ebp - 4], 7
cmp dword [edi + 0x14], esi
jb 0x5039d7
mov edi, dword [edi]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
push 0x6edde4
call fcn.00458a40
push dword [ebx + 0xc]
lea ecx, [ebp - 0x48]
push str.error
call fcn.00458a40
push edi
push str.transcript
lea ecx, [ebp - 0x48]
call fcn.00458a40
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.004877fd
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.0048777a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00488de7
push eax
lea ecx, [ebx + 0x38]
call fcn.00427924
lea ecx, [ebp - 0x7c]
call fcn.00427afc
lea eax, [ebp - 0x38]
push eax
call fcn.00488c25
lea ecx, [ebp - 0x38]
call fcn.0048777a
xor al, al
jmp 0x503a67
mov esi, dword [ebp + 8]
push esi
mov byte [esi], 1
call fcn.005032ba
cmp dword [edi + 0x18], 0
je 0x503a65
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