Function at 0x4a5f90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571498
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5a800c]
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.0042c740
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
jne 0x4a610b
push esi
lea ecx, [ebp - 0x70]
call fcn.00402430
mov dword [ebp - 4], 0
mov ecx, str..old.tmp
call fcn.004028c0
push eax
push str..old.tmp
lea ecx, [ebp - 0x70]
call fcn.004067c0
push 0xb
lea ecx, [ebp - 0x70]
call fcn.004023c0
push eax
mov ecx, esi
call fcn.004023c0
push eax
call edi
test eax, eax
jne 0x4a60fc
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x71], al
call fcn.00402410
mov byte [ebp - 4], 1
mov edx, ecx
mov ecx, esi
call fcn.0042cbb0
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.00402410
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x70]
call fcn.0042cbb0
test al, al
jne 0x4a6066
cmp byte [ebp - 0x78], al
je 0x4a6080
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004023c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004023c0
push eax
call edi
test eax, eax
jne 0x4a60e4
lea ecx, [ebp - 0x70]
call fcn.0042c590
cmp eax, 0xffffffff
je 0x4a60e4
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402430
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0042c970
test al, al
je 0x4a60d8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.0042c630
test al, al
je 0x4a60d8
lea edx, [ebp - 0x70]
mov ecx, esi
call fcn.0042c630
lea ecx, [ebp - 0x28]
test al, al
je 0x4a60d0
call fcn.0042c740
jmp 0x4a60d8
lea edx, [ebp - 0x70]
call fcn.0042c630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00402400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402400
push 0xb
mov ecx, esi
call fcn.004023c0
push eax
mov ecx, ebx
call fcn.004023c0
push eax
call edi
test eax, eax
jne 0x4a61f7
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x71], al
call fcn.00402410
mov dword [ebp - 4], 4
mov edx, ecx
mov ecx, ebx
call fcn.0042cbb0
movzx ebx, byte [ebp - 0x71]
lea ecx, [ebp - 0x58]
test al, al
mov eax, 1
cmovne ebx, eax
call fcn.00402410
mov byte [ebp - 4], 5
mov edx, ecx
mov ecx, esi
call fcn.0042cbb0
test al, al
jne 0x4a616d
test bl, bl
je 0x4a6187
push 0xb
lea ecx, [ebp - 0x58]
call fcn.004023c0
push eax
lea ecx, [ebp - 0x40]
call fcn.004023c0
push eax
call edi
test eax, eax
jne 0x4a61dc
mov ecx, esi
call fcn.0042c590
cmp eax, 0xffffffff
je 0x4a620e
push esi
lea ecx, [ebp - 0x28]
call fcn.00402430
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0042c970
test al, al
je 0x4a6202
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0042c630
test al, al
je 0x4a6202
mov ecx, dword [ebp - 0x7c]
mov edx, esi
call fcn.0042c630
lea ecx, [ebp - 0x28]
test al, al
je 0x4a61fb
call fcn.0042c740
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00402400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402400
mov al, 1
jmp 0x4a622b
mov edx, esi
call fcn.0042c630
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00402400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402400
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.0055929f
mov esp, ebp
pop ebp
ret 8