Function at 0x466b10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488508
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4bc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov al, 1
mov byte [ebp - 0x11], al
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.004027e0
mov byte [ebp - 4], 3
push esi
push 0x48d104
lea eax, [ebp - 0x18]
push eax
call fcn.004602b0
add esp, 0xc
push 0x49b544
lea ecx, [ebp - 0x20]
call fcn.0045fcf0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.0045f3b0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff0
cmp ecx, edi
je 0x466bea
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x466bde
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x466bde
call fcn.00403090
mov dword [ebp - 0x28], eax
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x466bd3
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x466bed
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.004030f0
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466c0f
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466c31
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
lea ecx, [ebp + 0xc]
call fcn.0045f7b0
lea ecx, [ebp - 0x1c]
call fcn.004027e0
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
call fcn.00461e10
mov edi, eax
mov dword [ebp - 0x24], edi
mov ecx, edi
call fcn.00461ff0
test eax, eax
je 0x466e62
cmp dword [eax + 0xc], 0x4000
je 0x466c52
add eax, 0x10
push eax
lea ecx, [ebp - 0x20]
call fcn.0045fcf0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.0045f7b0
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402680
mov byte [ebp - 4], 0xa
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.004600e0
test al, al
je 0x466e15
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0045f3b0
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0x1c]
add edi, 0xfffffff0
cmp ecx, edi
je 0x466d10
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x466d04
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x466d04
call fcn.00403090
mov dword [ebp - 0x2c], eax
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x466cf9
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x466d10
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004030f0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466d32
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.0045f3b0
add esp, 4
mov byte [ebp - 4], 0xd
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466d77
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
test edi, edi
jne 0x466e12
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push ecx
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x38], esp
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [edi - 4]
cmp dword [eax], 0
jl 0x466db5
cmp ecx, dword [edi - 0x10]
jne 0x466db5
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x466ddf
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x466fea
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004031f0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.renameFile_ERROR_Code_for_file
call fcn.0045fcf0
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2c]
call fcn.00462c10
add esp, 8
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466e37
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466c52
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x466c52
mov ecx, edi
call fcn.00462120
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466e8b
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466ead
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466ecf
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0x17
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x466ef5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004031e0
int3