Function at 0x457f40
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4c7fe5
call fcn.004c2540
sub esp, 0x490
mov eax, dword [0x4e7384]
and dword [ebp - 0x484], 0
push ebx
push esi
push edi
push 0x4eb3e4
lea edi, [ebp - 0x480]
mov dword [ebp - 0x10], eax
call fcn.00402e10
and dword [ebp - 4], 0
push 0x4d1058
mov eax, edi
push eax
call fcn.00402ee8
mov ebx, dword [ebp - 0x480]
call fcn.004016e7
xor edi, edi
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x494], edi
mov dword [ebp - 0x490], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
cmp ebx, edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x478], edi
jle 0x458098
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp + 8]
call fcn.0046cd11
mov ebx, dword [eax]
mov eax, dword [0x4e9150]
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x478]
lea eax, [ebp - 0x47c]
push dword [ebp - 0x480]
push str._s_03d.ttbl.tmp
push eax
call fcn.00405c38
add esp, 0x10
lea eax, [ebp - 0x47c]
push eax
lea edi, [ebp - 0x49c]
call fcn.00408dff
cmp dword [ebx + 0x20], 0
mov edi, dword [ebp - 0x47c]
jne 0x458063
push edi
call esi
lea eax, [ebp - 0x488]
mov ecx, ebx
call fcn.00437ac6
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x45805a
push eax
call fcn.004013aa
push edi
lea eax, [ebx + 0x14]
call fcn.00402ec3
lea eax, [edi - 0xc]
mov byte [ebp - 4], 1
cmp eax, dword [0x4e9154]
je 0x458078
push eax
call fcn.004013aa
inc dword [ebp - 0x478]
mov eax, dword [ebp - 0x478]
cmp eax, dword [ebp - 0x48c]
jl 0x457fcc
mov ebx, dword [ebp - 0x48c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x478], edi
jle 0x458165
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp + 8]
call fcn.0046cd11
mov edi, dword [eax]
mov eax, dword [0x4e9150]
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x478]
lea eax, [ebp - 0x47c]
push dword [ebp - 0x480]
push str._s_03d.ttbl
push eax
call fcn.00405c38
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x4580fb
push 1
push dword [ebp - 0x47c]
push edi
call fcn.004564b0
jmp 0x458136
push dword [ebp - 0x47c]
call esi
lea eax, [ebp - 0x488]
mov ecx, edi
call fcn.00437ac6
push dword [ebp - 0x47c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x458136
push eax
call fcn.004013aa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x458151
push eax
call fcn.004013aa
inc dword [ebp - 0x478]
cmp dword [ebp - 0x478], ebx
jl 0x4580a6
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x478], edi
jle 0x45819a
mov eax, dword [ebp - 0x478]
cmp eax, dword [ebp - 0x498]
jae 0x458235
mov ecx, dword [ebp - 0x49c]
push dword [ecx + eax*4]
call esi
inc dword [ebp - 0x478]
cmp dword [ebp - 0x478], ebx
jl 0x45816f
push 0x4d1b90
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp + 8]
push eax
mov word [ebp - 0x1c], 0x5c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x224], di
call fcn.0040302d
mov eax, dword [eax]
lea ebx, [ebp - 0x474]
call fcn.00407e63
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4581e5
push eax
call fcn.004013aa
test edi, edi
je 0x4582a9
lea ecx, [ebp + 8]
lea eax, [ebp - 0x474]
call fcn.00407d85
mov eax, dword [eax]
or dword [ebp - 0x484], 1
lea ecx, [ebp - 0x478]
push ecx
push str._d.ttbl
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x45823f
mov eax, dword [ebp - 0x478]
test eax, eax
jl 0x45823f
cmp eax, dword [ebp - 0x48c]
jge 0x45823f
mov bl, 1
jmp 0x458241
push 0x80070057
call fcn.004010ca
xor bl, bl
test byte [ebp - 0x484], 1
je 0x458265
mov eax, dword [ebp + 8]
and dword [ebp - 0x484], 0xfffffffe
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x458265
push eax
call fcn.004013aa
test bl, bl
jne 0x458296
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x474]
call fcn.00407dcf
push dword [eax]
call esi
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x458296
push eax
call fcn.004013aa
lea eax, [ebp - 0x474]
call fcn.00407f19
test eax, eax
jne 0x4581ed
push str..ttbl.tmp
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040302d
mov eax, dword [eax]
lea ebx, [ebp - 0x474]
call fcn.00407e63
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4582e1
push eax
call fcn.004013aa
test edi, edi
je 0x45831b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x474]
call fcn.00407dcf
push dword [eax]
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x45830c
push eax
call fcn.004013aa
lea eax, [ebp - 0x474]
call fcn.00407f19
test eax, eax
jne 0x4582e5
lea eax, [ebp - 0x474]
call fcn.00407f42
lea esi, [ebp - 0x49c]
call fcn.0045238b
mov eax, dword [ebp - 0x480]
pop edi
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
pop esi
pop ebx
je 0x45834b
push eax
call fcn.004013aa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004c2215
leave
ret 4