Function at 0x4ad1ba4f
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x4ad33b78]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x4ad34640
mov dword [ebp - 4], eax
call sub.msvcrt.dll__setjmp3
test eax, eax
pop ecx
pop ecx
jne 0x4ad1be6b
mov eax, dword [ebp + 8]
push esi
push esi
push dword [eax + 0x3c]
call fcn.4ad017d6
mov ebx, eax
cmp word [ebx], si
mov dword [ebp - 0x628], ebx
je 0x4ad1bcb2
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
lea edi, [ebx + eax*2 + 2]
cmp word [edi], 0
pop ecx
mov dword [ebp - 0x638], edi
je 0x4ad1bcb2
push edi
call esi
cmp word [edi + eax*2 + 2], 0
pop ecx
jne 0x4ad1bcb2
push ebx
call fcn.4ad01349
test eax, eax
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
je 0x4ad1baee
push dword [ebp - 0x628]
call fcn.4ad01349
push eax
push dword [ebp - 0x628]
call ebx
pop ecx
pop ecx
push edi
call fcn.4ad01349
test eax, eax
je 0x4ad1bb04
push edi
call fcn.4ad01349
push eax
push edi
call ebx
pop ecx
pop ecx
push dword [ebp - 0x628]
call fcn.4ad062eb
cmp eax, 1
mov dword [ebp - 0x630], eax
jne 0x4ad1bb25
push dword [0x4ad2ba04]
jmp 0x4ad1bcb7
mov edi, 0x4ad34400
lea eax, [ebp - 0x214]
push edi
push eax
call ebx
lea eax, [ebp - 0x41c]
push edi
push eax
call ebx
lea eax, [ebp - 0x214]
push eax
call esi
mov edi, dword [ebp - 0x630]
mov ecx, dword [edi + 0x14]
add esp, 0x14
test byte [ecx], 0x10
mov dword [ebp - 0x634], eax
jne 0x4ad1bb78
lea eax, [ebp + eax*2 - 0x214]
test eax, eax
je 0x4ad1bb91
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4ad1bb91
push ecx
push eax
call ebx
pop ecx
pop ecx
jmp 0x4ad1bb91
and word [ebp + eax*2 - 0x216], 0
dec eax
and word [ebp + eax*2 - 0x41c], 0
mov dword [ebp - 0x634], eax
test byte [edi + 0x18], 8
jne 0x4ad1bbc3
lea eax, [ebp - 0x214]
push eax
call fcn.4ad01349
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [edi + 0x14]
mov dword [ecx], eax
mov eax, dword [edi + 0x14]
cmp dword [eax], 0xffffffff
jne 0x4ad1bbc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x4ad1bcb7
mov eax, dword [ebp - 0x638]
cmp word [eax + 2], 0x3a
je 0x4ad1bcb2
xor ecx, ecx
mov cx, word [0x4ad33b8c]
push ecx
push eax
call fcn.4ad01323
test eax, eax
jne 0x4ad1bcb2
mov ax, word [0x4ad34400]
push dword [ebp - 0x628]
and word [ebp - 8], 0
mov word [ebp - 0x624], ax
mov word [ebp - 0x622], 0x3a
mov word [ebp - 0xc], 0x2a
mov word [ebp - 0xa], 0x3f
call esi
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x628]
call fcn.4ad029cb
push 0x20
cmp eax, edi
pop eax
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0x630]
push dword [ecx + 0x14]
mov dword [ebp - 0x628], eax
push eax
lea eax, [ebp - 0x214]
sbb edi, edi
push eax
neg edi
call fcn.4ad02a34
test al, al
jne 0x4ad1bcbc
push 0x10
pop eax
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0x630]
push dword [ecx + 0x14]
mov dword [ebp - 0x628], eax
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.4ad02a34
test al, al
jne 0x4ad1bca3
cmp dword [0x4ad2ba04], 0x12
jne 0x4ad1bb1a
mov dword [0x4ad2ba04], 2
jmp 0x4ad1bb1a
test edi, edi
je 0x4ad1bcbc
push dword [ebp - 0x62c]
call fcn.4ad01c24
push 0x232a
call fcn.4ad1ba27
mov eax, dword [ebp - 0x634]
lea eax, [ebp + eax*2 - 0x214]
and word [eax], 0
and dword [ebp - 0x640], 0
cmp dword [0x4ad2b9e8], 0
jne 0x4ad1be5b
mov eax, dword [ebp - 0x630]
mov eax, dword [eax + 0x14]
test byte [eax], 0x10
je 0x4ad1bd62
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.4ad01a53
mov edi, eax
test edi, edi
je 0x4ad1be70
push dword [ebp - 0x638]
inc edi
inc edi
and word [edi], 0
call esi
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x41c]
push eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x63c]
lea eax, [eax + ecx + 1]
cmp eax, 0x104
ja 0x4ad1be70
push dword [ebp - 0x638]
push edi
call ebx
lea eax, [ebp - 0x41c]
push eax
call esi
add esp, 0xc
and word [ebp + eax*2 - 0x41c], 0
jmp 0x4ad1bdd5
mov ecx, dword [ebp - 0x634]
lea ecx, [ebp + ecx*2 - 0x214]
test ecx, ecx
mov dword [ebp - 0x63c], ecx
je 0x4ad1bd84
add eax, 0x2c
je 0x4ad1bd84
push eax
push ecx
call ebx
pop ecx
pop ecx
mov edi, 0x104
push edi
push dword [ebp - 0x63c]
lea eax, [ebp - 0x624]
push dword [ebp - 0x638]
push eax
call fcn.4ad0e6d3
lea eax, [ebp - 0x624]
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x634]
lea eax, [eax + ecx + 1]
cmp eax, edi
ja 0x4ad1be70
lea eax, [ebp + ecx*2 - 0x41c]
test eax, eax
je 0x4ad1bdd5
lea ecx, [ebp - 0x624]
push ecx
push eax
call ebx
pop ecx
pop ecx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4ad1be0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ad1bdff
mov eax, 0x234d
push 0
push eax
mov dword [ebp - 0x640], eax
call fcn.4ad05fb5
pop ecx
pop ecx
push dword [ebp - 0x62c]
mov eax, dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [eax + 0x14]
call fcn.4ad0649c
test al, al
jne 0x4ad1bcd4
push dword [ebp - 0x62c]
call fcn.4ad01c24
call fcn.4ad062b7
xor eax, eax
cmp dword [ebp - 0x640], eax
setne al
mov ecx, dword [ebp - 4]
call fcn.4ad01305
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 0x62c]
call fcn.4ad01c24
call fcn.4ad062b7
xor eax, eax
inc eax
jmp 0x4ad1be4c
push 0x232e
jmp 0x4ad1bcb7