Function at 0x4ad1ba27
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 0x4ad1be43
mov eax, dword [ebp + 8]
push esi
push esi
push dword [eax + 0x3c]
call fcn.4ad017ea
mov ebx, eax
cmp word [ebx], si
mov dword [ebp - 0x628], ebx
je 0x4ad1bc8a
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 0x4ad1bc8a
push edi
call esi
cmp word [edi + eax*2 + 2], 0
pop ecx
jne 0x4ad1bc8a
push ebx
call fcn.4ad01349
test eax, eax
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
je 0x4ad1bac6
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 0x4ad1badc
push edi
call fcn.4ad01349
push eax
push edi
call ebx
pop ecx
pop ecx
push dword [ebp - 0x628]
call fcn.4ad0661f
cmp eax, 1
mov dword [ebp - 0x630], eax
jne 0x4ad1bafd
push dword [0x4ad2ba04]
jmp 0x4ad1bc8f
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 0x4ad1bb50
lea eax, [ebp + eax*2 - 0x214]
test eax, eax
je 0x4ad1bb69
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4ad1bb69
push ecx
push eax
call ebx
pop ecx
pop ecx
jmp 0x4ad1bb69
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 0x4ad1bb9b
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 0x4ad1bb9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x4ad1bc8f
mov eax, dword [ebp - 0x638]
cmp word [eax + 2], 0x3a
je 0x4ad1bc8a
xor ecx, ecx
mov cx, word [0x4ad33b8c]
push ecx
push eax
call fcn.4ad01323
test eax, eax
jne 0x4ad1bc8a
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.4ad029e3
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.4ad02a4c
test al, al
jne 0x4ad1bc94
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.4ad02a4c
test al, al
jne 0x4ad1bc7b
cmp dword [0x4ad2ba04], 0x12
jne 0x4ad1baf2
mov dword [0x4ad2ba04], 2
jmp 0x4ad1baf2
test edi, edi
je 0x4ad1bc94
push dword [ebp - 0x62c]
call fcn.4ad01c38
push 0x232a
call fcn.4ad1b9ff
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 0x4ad1be33
mov eax, dword [ebp - 0x630]
mov eax, dword [eax + 0x14]
test byte [eax], 0x10
je 0x4ad1bd3a
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.4ad01a67
mov edi, eax
test edi, edi
je 0x4ad1be48
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 0x4ad1be48
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 0x4ad1bdad
mov ecx, dword [ebp - 0x634]
lea ecx, [ebp + ecx*2 - 0x214]
test ecx, ecx
mov dword [ebp - 0x63c], ecx
je 0x4ad1bd5c
add eax, 0x2c
je 0x4ad1bd5c
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.4ad07e61
lea eax, [ebp - 0x624]
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x634]
lea eax, [eax + ecx + 1]
cmp eax, edi
ja 0x4ad1be48
lea eax, [ebp + ecx*2 - 0x41c]
test eax, eax
je 0x4ad1bdad
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 0x4ad1bde7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ad1bdd7
mov eax, 0x234d
push 0
push eax
mov dword [ebp - 0x640], eax
call fcn.4ad0606f
pop ecx
pop ecx
push dword [ebp - 0x62c]
mov eax, dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [eax + 0x14]
call fcn.4ad067d0
test al, al
jne 0x4ad1bcac
push dword [ebp - 0x62c]
call fcn.4ad01c38
call fcn.4ad065eb
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.4ad01c38
call fcn.4ad065eb
xor eax, eax
inc eax
jmp 0x4ad1be24
push 0x232e
jmp 0x4ad1bc8f