Function at 0x491f40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x522008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], ebx
call fcn.00411f90
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
jne 0x4920c0
push esi
lea ecx, [ebp - 0x70]
call fcn.00402250
mov dword [ebp - 4], 0
push str..old.tmp
call fcn.004025c0
add esp, 4
lea ecx, [ebp - 0x70]
push eax
push str..old.tmp
call fcn.00406d10
push 0xb
lea ecx, [ebp - 0x70]
call fcn.00402130
push eax
mov ecx, esi
call fcn.00402130
push eax
call edi
test eax, eax
jne 0x4920b1
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x71], al
call fcn.00402230
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004123e0
movzx ecx, byte [ebp - 0x71]
test al, al
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x40]
call fcn.00402230
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.004123e0
test al, al
jne 0x49201b
cmp byte [ebp - 0x78], al
je 0x492035
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00402130
push eax
lea ecx, [ebp - 0x58]
call fcn.00402130
push eax
call edi
test eax, eax
jne 0x492099
lea ecx, [ebp - 0x70]
call fcn.00411c80
cmp eax, 0xffffffff
je 0x492099
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402250
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004121a0
test al, al
je 0x49208d
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.00411d20
test al, al
je 0x49208d
lea edx, [ebp - 0x70]
mov ecx, esi
call fcn.00411d20
lea ecx, [ebp - 0x28]
test al, al
je 0x492085
call fcn.00411f90
jmp 0x49208d
lea edx, [ebp - 0x70]
call fcn.00411d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00401f40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00401f40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401f40
push 0xb
mov ecx, esi
call fcn.00402130
push eax
mov ecx, ebx
call fcn.00402130
push eax
call edi
test eax, eax
jne 0x4921ae
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x71], al
call fcn.00402230
mov dword [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.004123e0
movzx ebx, byte [ebp - 0x71]
lea ecx, [ebp - 0x58]
test al, al
mov eax, 1
cmovne ebx, eax
call fcn.00402230
mov byte [ebp - 4], 5
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004123e0
test al, al
jne 0x492124
test bl, bl
je 0x49213e
push 0xb
lea ecx, [ebp - 0x58]
call fcn.00402130
push eax
lea ecx, [ebp - 0x40]
call fcn.00402130
push eax
call edi
test eax, eax
jne 0x492193
mov ecx, esi
call fcn.00411c80
cmp eax, 0xffffffff
je 0x4921c5
push esi
lea ecx, [ebp - 0x28]
call fcn.00402250
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.004121a0
test al, al
je 0x4921b9
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00411d20
test al, al
je 0x4921b9
mov ecx, dword [ebp - 0x7c]
mov edx, esi
call fcn.00411d20
lea ecx, [ebp - 0x28]
test al, al
je 0x4921b2
call fcn.00411f90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00401f40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401f40
mov al, 1
jmp 0x4921e2
mov edx, esi
call fcn.00411d20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00401f40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401f40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5964
mov esp, ebp
pop ebp
ret 8