Function at 0x4b5470
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x53cce8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x588088]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 0xe4], 0
je 0x4b54b5
xor al, al
jmp 0x4b572d
lea esi, [ebx + 0x40]
push esi
mov dword [ebp - 0x18], esi
call fcn.00488f70
add esp, 4
test al, al
je 0x4b54ae
lea edi, [ebx + 0x58]
push edi
call fcn.00488f70
add esp, 4
test al, al
je 0x4b54ae
mov ecx, esi
call fcn.00403390
mov esi, eax
call fcn.0048ea10
push ecx
push esi
mov ecx, eax
call fcn.0048eb10
test al, al
je 0x4b54ae
mov ecx, edi
call fcn.00403390
mov esi, eax
call fcn.0048ea10
push ecx
push esi
mov ecx, eax
call fcn.0048eb10
test al, al
je 0x4b54ae
push str..tmp
lea edi, [ebx + 0x70]
lea eax, [ebp + 0x48]
push edi
push eax
call fcn.00412f50
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402ac0
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x10]
call fcn.00403390
push eax
lea ecx, [ebp + 0x48]
call fcn.00403390
push eax
lea ecx, [ebx + 0x58]
call fcn.00403390
push eax
lea eax, [ebp]
push str._m___s___s___s___h__s
push eax
call fcn.0048b8e0
mov eax, dword [ebx + 0xf0]
lea edx, [ebp]
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
xor bl, bl
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
push esi
mov dword [ebp - 0x10], esi
call fcn.00493410
add esp, 0x1c
test al, al
je 0x4b55a9
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov ecx, esi
mov bl, 1
call fcn.00493900
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xe8], esi
test bl, bl
je 0x4b5710
cmp esi, 0x2710
sete bl
jne 0x4b5710
push edi
mov dword [eax + 0xe8], 0
call fcn.00488f70
add esp, 4
test al, al
je 0x4b55f1
push edi
lea eax, [ebp + 0x48]
push eax
call fcn.004b2220
mov bl, al
jmp 0x4b5710
push 0xb
mov ecx, edi
call fcn.00403390
push eax
lea ecx, [ebp + 0x48]
call fcn.00403390
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call esi
test eax, eax
jne 0x4b56df
lea ecx, [ebp + 0x18]
xor bl, bl
call fcn.00402ac0
mov byte [ebp - 4], 2
lea edx, [ebp + 0x18]
lea ecx, [ebp + 0x48]
call fcn.004aba40
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp + 0x30]
call fcn.00402ac0
mov byte [ebp - 4], 3
lea edx, [ebp + 0x30]
mov ecx, edi
call fcn.004aba40
test al, al
jne 0x4b5658
test bl, bl
je 0x4b5672
push 0xb
lea ecx, [ebp + 0x30]
call fcn.00403390
push eax
lea ecx, [ebp + 0x18]
call fcn.00403390
push eax
call esi
test eax, eax
jne 0x4b56c7
mov ecx, edi
call fcn.004ab440
cmp eax, 0xffffffff
je 0x4b56f6
push edi
lea ecx, [ebp + 0x60]
call fcn.00404520
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x60]
call fcn.004ab800
test al, al
je 0x4b56ea
lea edx, [ebp + 0x60]
mov ecx, edi
call fcn.004ab4e0
test al, al
je 0x4b56ea
mov edx, edi
lea ecx, [ebp + 0x48]
call fcn.004ab4e0
lea ecx, [ebp + 0x60]
test al, al
je 0x4b56e3
call fcn.004ab5f0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x60]
call fcn.00402a60
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00402a60
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00402a60
mov bl, 1
jmp 0x4b5710
mov edx, edi
call fcn.004ab4e0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x60]
call fcn.00402a60
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00402a60
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00402a60
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.00402a60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.004e1a24
lea esp, [ebp + 0x7c]
pop ebp
ret