Function at 0x405e30
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b6c1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e0
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004f53d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x98]
push 0x536254
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [ebp - 0x2a8], 0
add esp, 0xc
mov dword [ebp - 0x2a4], 7
mov word [ebp - 0x2b8], ax
mov dword [ebp - 4], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x405ed1
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push str..tmp
push 0
call fcn.00402f40
add esp, 0xc
cmp eax, 0xffffffff
je 0x406030
xor ecx, ecx
mov dword [ebp - 0x2d8], 0
add eax, 4
mov word [ebp - 0x2e8], cx
cmp dword [esi + 0x10], eax
mov ecx, esi
mov dword [ebp - 0x2d4], 7
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x405f1f
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x2e8]
call fcn.00403ab0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00407fe0
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2f0], eax
add esp, 0xc
cmp ecx, eax
je 0x405f98
lea ecx, [ebp - 0x2b8]
call fcn.00403ca0
mov eax, dword [ebp - 0x2f0]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2b8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2a8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x2bc]
cmp edx, 8
jb 0x405fd8
mov ecx, dword [ebp - 0x2d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061e3
push edx
push ecx
call fcn.004f2ead
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
cmp edx, 8
jb 0x406080
mov ecx, dword [ebp - 0x2e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406076
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061e8
jmp 0x406076
push str..tmp
lea eax, [ebp - 0x2e8]
push esi
push eax
call fcn.00408050
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00407fe0
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2f0], eax
add esp, 0x18
cmp ecx, eax
je 0x405f98
jmp 0x405f5d
push edx
push ecx
call fcn.004f2ead
add esp, 8
cmp dword [edi + 0x10], 0
je 0x40612a
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x2a0]
push 0x104
push eax
call fcn.004fb5f2
lea ecx, [ebp - 0x2a0]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060c3
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00403ab0
mov ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [edi + 0x10]
cmp ecx, 8
jb 0x4060f4
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x5c
je 0x406115
push 1
push 0x536230
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.004079c0
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
cmp ecx, 8
jb 0x40611c
mov edi, dword [edi]
push eax
push edi
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.004079c0
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
cmp dword [esi + 0x14], 8
jb 0x406146
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40617c
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
push 4
cmovae eax, dword [ebp - 0x2b8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne byte [ebp - 0x2e9]
jmp 0x406183
mov byte [ebp - 0x2e9], 0
mov edx, dword [ebp - 0x2a4]
cmp edx, 8
jb 0x4061bf
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4061b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061e3
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov al, byte [ebp - 0x2e9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004f855c
call fcn.004f855c
int3