Function at 0x4ad1c597
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 [0x4ad33b38]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x4ad343c0
mov dword [ebp - 4], eax
call sub.msvcrt.dll__setjmp3
test eax, eax
pop ecx
pop ecx
jne 0x4ad1c9b4
mov eax, dword [ebp + 8]
push esi
push esi
push dword [eax + 0x3c]
call fcn.4ad02d3d
mov ebx, eax
cmp word [ebx], si
mov dword [ebp - 0x628], ebx
je 0x4ad1c7fa
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 0x4ad1c7fa
push edi
call esi
cmp word [edi + eax*2 + 2], 0
pop ecx
jne 0x4ad1c7fa
push ebx
call fcn.4ad02f54
test eax, eax
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
je 0x4ad1c636
push dword [ebp - 0x628]
call fcn.4ad02f54
push eax
push dword [ebp - 0x628]
call ebx
pop ecx
pop ecx
push edi
call fcn.4ad02f54
test eax, eax
je 0x4ad1c64c
push edi
call fcn.4ad02f54
push eax
push edi
call ebx
pop ecx
pop ecx
push dword [ebp - 0x628]
call fcn.4ad07eed
cmp eax, 1
mov dword [ebp - 0x630], eax
jne 0x4ad1c66d
push dword [0x4ad2b9c4]
jmp 0x4ad1c7ff
mov edi, 0x4ad34460
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 0x4ad1c6c0
lea eax, [ebp + eax*2 - 0x214]
test eax, eax
je 0x4ad1c6d9
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4ad1c6d9
push ecx
push eax
call ebx
pop ecx
pop ecx
jmp 0x4ad1c6d9
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 0x4ad1c70b
lea eax, [ebp - 0x214]
push eax
call fcn.4ad02f54
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 0x4ad1c70b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x4ad1c7ff
mov eax, dword [ebp - 0x638]
cmp word [eax + 2], 0x3a
je 0x4ad1c7fa
xor ecx, ecx
mov cx, word [0x4ad34440]
push ecx
push eax
call fcn.4ad015d7
test eax, eax
jne 0x4ad1c7fa
mov ax, word [0x4ad34460]
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.4ad0230a
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.4ad02774
test al, al
jne 0x4ad1c805
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.4ad02774
test al, al
jne 0x4ad1c7eb
cmp dword [0x4ad2b9c4], 0x12
jne 0x4ad1c662
mov dword [0x4ad2b9c4], 2
jmp 0x4ad1c662
test edi, edi
je 0x4ad1c805
push dword [ebp - 0x62c]
call fcn.4ad03015
push 0x232a
call fcn.4ad1c56e
int3
mov eax, dword [ebp - 0x634]
lea eax, [ebp + eax*2 - 0x214]
and word [eax], 0
and dword [ebp - 0x640], 0
cmp dword [0x4ad2b9a8], 0
jne 0x4ad1c9a4
mov eax, dword [ebp - 0x630]
mov eax, dword [eax + 0x14]
test byte [eax], 0x10
je 0x4ad1c8ab
xor eax, eax
mov ax, word [0x4ad34440]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.4ad026cd
mov edi, eax
test edi, edi
je 0x4ad1c9b9
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 0x4ad1c9b9
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 0x4ad1c91e
mov ecx, dword [ebp - 0x634]
lea ecx, [ebp + ecx*2 - 0x214]
test ecx, ecx
mov dword [ebp - 0x63c], ecx
je 0x4ad1c8cd
add eax, 0x2c
je 0x4ad1c8cd
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.4ad0e071
lea eax, [ebp - 0x624]
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x634]
lea eax, [eax + ecx + 1]
cmp eax, edi
ja 0x4ad1c9b9
lea eax, [ebp + ecx*2 - 0x41c]
test eax, eax
je 0x4ad1c91e
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 0x4ad1c958
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ad1c948
mov eax, 0x234d
push 0
push eax
mov dword [ebp - 0x640], eax
call fcn.4ad050c9
pop ecx
pop ecx
push dword [ebp - 0x62c]
mov eax, dword [ebp - 0x630]
push dword [ebp - 0x628]
push dword [eax + 0x14]
call fcn.4ad07ecc
test al, al
jne 0x4ad1c81d
push dword [ebp - 0x62c]
call fcn.4ad03015
call fcn.4ad07faf
xor eax, eax
cmp dword [ebp - 0x640], eax
setne al
mov ecx, dword [ebp - 4]
call fcn.4ad01389
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 0x62c]
call fcn.4ad03015
call fcn.4ad07faf
xor eax, eax
inc eax
jmp 0x4ad1c995
push 0x232e
jmp 0x4ad1c7ff