Function at 0x7dd7ceab
Capabilities:
Check if file exists

Disassembly:
mov edx, dword [ebp - 0x290]
add edx, ebx
cmp eax, edx
jb 0x7ddaef84
cmp eax, ebx
jae 0x7dd7cfff
jmp 0x7dd7cff4
push 0x28c
push 0x7dd7d170
call fcn.7dd725e8
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x280], esi
xor edi, edi
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x270], edi
cmp ebx, edi
je 0x7ddaef68
push 0x8001
call fcn.7dd71ac5
mov dword [ebp - 0x298], eax
mov dword [ebp - 4], edi
push ebx
call sub.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x7dd9a02e
push ebx
call fcn.7dd7a200
cmp eax, edi
je 0x7dd8cf8b
cmp word [eax], di
je 0x7dd8cf8b
push 1
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x278]
push ecx
push eax
call fcn.7dd7a22d
test eax, eax
je 0x7dd8cf8b
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x7dd7cf3e
sub eax, ecx
sar eax, 1
inc eax
mov dword [ebp - 0x290], eax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x294], eax
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x290]
lea ecx, [esi + esi]
mov dword [ebp - 0x290], ecx
push ecx
mov ecx, dword [ebp - 0x294]
add ecx, 0x200000
push ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call edi
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x7ddaef77
push esi
push ebx
push esi
push eax
call fcn.7dd78972
mov eax, dword [ebp - 0x278]
sub eax, ebx
sar eax, 1
mov esi, dword [ebp - 0x27c]
lea eax, [esi + eax*2]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x288]
sub eax, ebx
sar eax, 1
lea esi, [esi + eax*2]
mov dword [ebp - 0x288], esi
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jbe 0x7dd7cfff
test eax, eax
je 0x7dd7cfff
cmp eax, ebx
jae 0x7dd75be4
lea eax, [eax + ecx*2]
cmp eax, ebx
jae 0x7ddaef84
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x28c], eax
and dword [ebp - 0x270], 0
mov ebx, dword [sym.imp.ntdll.dll_memmove]
mov eax, dword [ebp - 0x278]
sub eax, dword [ebp - 0x28c]
sar eax, 1
je 0x7dd7d05d
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd7d05d
cmp dword [ebp - 0x280], 0
je 0x7dd7d05d
lea edi, [eax + eax]
push edi
push dword [ebp - 0x28c]
push dword [ebp - 0x274]
call ebx
add esp, 0xc
add dword [ebp - 0x274], edi
movzx edi, word [esi]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x27c]
call fcn.7dd74489
mov word [esi], di
cmp eax, 0xffffffff
je 0x7dd985d3
push eax
call fcn.7dd7447e
lea eax, [ebp - 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7d08f
sub eax, edx
sar eax, 1
je 0x7dd985c4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x278], ecx
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd7d0e1
cmp dword [ebp - 0x280], 0
je 0x7dd7d0e1
lea edi, [eax + eax]
push edi
push dword [ebp - 0x278]
push dword [ebp - 0x274]
call ebx
add esp, 0xc
add dword [ebp - 0x274], edi
mov dword [ebp - 0x28c], esi
cmp word [esi], 0
jne 0x7dd8192c
cmp dword [ebp - 0x270], 0
je 0x7dd7d156
mov eax, dword [ebp - 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7d103
sub eax, edx
sar eax, 1
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd985df
cmp dword [ebp - 0x280], 0
je 0x7dd985df
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x28c]
push dword [ebp - 0x274]
call ebx
add esp, 0xc
cmp dword [ebp - 0x284], 0
jne 0x7ddaefce
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd7d191
mov eax, dword [ebp - 0x270]
call fcn.7dd72630
ret 0xc
push 1
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x278]
push eax
push esi
call fcn.7dd7a22d
test eax, eax
je 0x7dd7d0f1
mov esi, dword [ebp - 0x288]
jmp 0x7dd7d018
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x7dd8cf90
sub eax, edx
sar eax, 1
mov dword [ebp - 0x270], eax
cmp dword [ebp + 0x10], eax
jbe 0x7dd985df
cmp esi, edi
je 0x7dd985df
cmp esi, ebx
je 0x7dd7d156
lea eax, [eax + eax + 2]
push eax
push ebx
push esi
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x7dd7d156
mov eax, esi
sub eax, dword [ebp - 0x278]
sar eax, 1
jmp 0x7dd7d0ac
and dword [ebp - 0x270], 0
jmp 0x7dd7d0f1
inc dword [ebp - 0x270]
jmp 0x7dd7d156
mov eax, dword fs:[0x18]
cmp dword [eax + 0x30], edi
je 0x7dd9a055
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x1d8]
and eax, 1
xor ecx, ecx
or eax, ecx
jne 0x7dd7cf04
mov dword [ebp - 0x270], edi
jmp 0x7dd7d156
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd7d168
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd7d156
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x29c], eax
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 0x10]
add ecx, ecx
push ecx
mov ecx, dword [ebp - 0x29c]
add ecx, 0x200000
push ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov dword [ebp - 0x284], eax
test eax, eax
je 0x7ddaef77
mov dword [ebp - 0x274], eax
mov esi, dword [ebp - 0x288]
jmp 0x7dd7cfff
mov eax, dword [ebp - 0x270]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x284]
push dword [ebp - 0x280]
call ebx
jmp 0x7dd8cfca