Function at 0x7dd7ce7b
Capabilities:
Check if file exists

Disassembly:
mov edx, dword [ebp - 0x290]
add edx, ebx
cmp eax, edx
jb 0x7ddaefa4
cmp eax, ebx
jae 0x7dd7cfcf
jmp 0x7dd7cfc4
push 0x28c
push 0x7dd7d140
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 0x7ddaef88
push 0x8001
call fcn.7dd71ac5
mov dword [ebp - 0x298], eax
mov dword [ebp - 4], edi
push ebx
call fcn.7dd71add
cmp eax, 0xffffffff
je 0x7dd9a022
push ebx
call fcn.7dd7a1d4
cmp eax, edi
je 0x7dd8cf63
cmp word [eax], di
je 0x7dd8cf63
push 1
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x278]
push ecx
push eax
call fcn.7dd7a201
test eax, eax
je 0x7dd8cf63
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x7dd7cf0e
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 0x7ddaef97
push esi
push ebx
push esi
push eax
call fcn.7dd78982
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 0x7dd7cfcf
test eax, eax
je 0x7dd7cfcf
cmp eax, ebx
jae 0x7dd75bf4
lea eax, [eax + ecx*2]
cmp eax, ebx
jae 0x7ddaefa4
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 0x7dd7d02d
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd7d02d
cmp dword [ebp - 0x280], 0
je 0x7dd7d02d
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.7dd74499
mov word [esi], di
cmp eax, 0xffffffff
je 0x7dd985b3
push eax
call fcn.7dd7448e
lea eax, [ebp - 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7d05f
sub eax, edx
sar eax, 1
je 0x7dd985a4
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 0x7dd7d0b1
cmp dword [ebp - 0x280], 0
je 0x7dd7d0b1
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 0x7dd818fc
cmp dword [ebp - 0x270], 0
je 0x7dd7d126
mov eax, dword [ebp - 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7d0d3
sub eax, edx
sar eax, 1
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd985bf
cmp dword [ebp - 0x280], 0
je 0x7dd985bf
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 0x7ddaefee
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd7d161
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.7dd7a201
test eax, eax
je 0x7dd7d0c1
mov esi, dword [ebp - 0x288]
jmp 0x7dd7cfe8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x7dd8cf68
sub eax, edx
sar eax, 1
mov dword [ebp - 0x270], eax
cmp dword [ebp + 0x10], eax
jbe 0x7dd985bf
cmp esi, edi
je 0x7dd985bf
cmp esi, ebx
je 0x7dd7d126
lea eax, [eax + eax + 2]
push eax
push ebx
push esi
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x7dd7d126
mov eax, esi
sub eax, dword [ebp - 0x278]
sar eax, 1
jmp 0x7dd7d07c
and dword [ebp - 0x270], 0
jmp 0x7dd7d0c1
inc dword [ebp - 0x270]
jmp 0x7dd7d126
mov eax, dword fs:[0x18]
cmp dword [eax + 0x30], edi
je 0x7dd9a049
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 0x7dd7ced4
mov dword [ebp - 0x270], edi
jmp 0x7dd7d126
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd7d138
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd7d126
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 0x7ddaef97
mov dword [ebp - 0x274], eax
mov esi, dword [ebp - 0x288]
jmp 0x7dd7cfcf
mov eax, dword [ebp - 0x270]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x284]
push dword [ebp - 0x280]
call ebx
jmp 0x7dd8cfa2