Function at 0x7dd7a32a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x290
push 0x7dd7a5b8
call fcn.7dd725e8
mov esi, dword [ebp + 8]
mov dword [ebp - 0x280], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28c], edi
xor ebx, ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x27c], ebx
cmp esi, ebx
je 0x7ddaf00a
push 0x8001
call fcn.7dd71ac5
mov dword [ebp - 0x298], eax
mov dword [ebp - 4], ebx
push esi
call sub.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x7dd7a63a
push esi
call fcn.7dd7a200
cmp eax, ebx
je 0x7dd8d8ac
cmp word [eax], bx
je 0x7dd8d8ac
push ebx
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x278]
push ecx
push eax
call fcn.7dd7a22d
test eax, eax
je 0x7dd8d8ac
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x7dd7a3c2
sub eax, ecx
sar eax, 1
inc eax
mov dword [ebp - 0x294], eax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2a0], eax
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x294]
add esi, esi
push esi
mov ecx, dword [ebp - 0x2a0]
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 ebx, eax
mov dword [ebp - 0x27c], ebx
test ebx, ebx
je 0x7dd8cd29
push esi
push dword [ebp - 0x280]
push ebx
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
mov eax, dword [ebp - 0x278]
sub eax, dword [ebp - 0x280]
sar eax, 1
lea eax, [ebx + eax*2]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x288]
sub eax, dword [ebp - 0x280]
sar eax, 1
lea ebx, [ebx + eax*2]
mov dword [ebp - 0x288], ebx
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x274], eax
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x7dd7a495
test eax, eax
je 0x7dd7a495
mov ecx, dword [ebp - 0x280]
cmp eax, ecx
jb 0x7dd7a6b8
add esi, ecx
cmp eax, esi
jb 0x7dd7a6c3
cmp eax, ecx
jb 0x7dd7a6b8
mov edi, dword [ebp - 0x290]
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x278]
sub eax, dword [ebp - 0x284]
sar eax, 1
add dword [ebp - 0x270], eax
test eax, eax
je 0x7dd7a4f2
mov ecx, dword [ebp - 0x270]
cmp dword [ebp + 0x10], ecx
jbe 0x7dd7a4f2
cmp dword [ebp - 0x280], 0
je 0x7dd7a4f2
lea esi, [eax + eax]
push esi
push dword [ebp - 0x284]
push dword [ebp - 0x274]
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
add dword [ebp - 0x274], esi
movzx esi, word [ebx]
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x27c]
call fcn.7dd74489
mov word [ebx], si
cmp eax, 0xffffffff
je 0x7dd8cd36
push eax
call fcn.7dd7447e
lea eax, [ebp - 0x240]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7a527
sub eax, edx
sar eax, 1
je 0x7ddaf019
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x278], ecx
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd7a580
cmp dword [ebp - 0x28c], 0
je 0x7dd7a580
lea esi, [eax + eax]
push esi
push dword [ebp - 0x278]
push dword [ebp - 0x274]
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
add dword [ebp - 0x274], esi
mov dword [ebp - 0x284], ebx
cmp word [ebx], 0
je 0x7dd7a5d4
push 0
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x278]
push eax
push ebx
call fcn.7dd7a22d
test eax, eax
je 0x7dd7a5d4
mov ebx, dword [ebp - 0x288]
jmp 0x7dd7a4a7
cmp dword [ebp - 0x270], 0
je 0x7dd7a63a
mov eax, dword [ebp - 0x284]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7a5e6
sub eax, edx
sar eax, 1
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd91e1f
cmp dword [ebp - 0x28c], 0
je 0x7dd91e1f
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x284]
push dword [ebp - 0x274]
mov esi, dword [sym.imp.ntdll.dll_memmove]
call esi
add esp, 0xc
test edi, edi
jne 0x7dd8cd13
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd7a664
push dword [ebp - 0x298]
call fcn.7dd71ac5
mov eax, dword [ebp - 0x270]
call fcn.7dd72630
ret 0xc
lea eax, [eax + edx*2]
cmp eax, ecx
jb 0x7dd7a495
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 edi, eax
mov dword [ebp - 0x290], edi
test edi, edi
je 0x7dd8cd29
mov dword [ebp - 0x274], edi
mov ebx, dword [ebp - 0x288]
jmp 0x7dd7a49b
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7dd8ccd1
sub eax, edx
sar eax, 1
mov dword [ebp - 0x270], eax
cmp dword [ebp + 0x10], eax
jbe 0x7dd8d8b6
cmp edi, ebx
je 0x7dd8d8b6
cmp edi, esi
je 0x7dd7a63a
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x7dd7a63a
mov eax, dword [ebp - 0x270]
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp - 0x28c]
call esi
jmp 0x7dd8cd0b
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd7a63a
and dword [ebp - 0x270], 0
jmp 0x7dd7a5d4
mov eax, esi
lea edx, [eax + 2]
jmp 0x7dd8ccd1
inc eax
mov dword [ebp - 0x270], eax
jmp 0x7dd7a63a
inc dword [ebp - 0x270]
jmp 0x7dd7a63a
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd7a657
mov eax, ebx
sub eax, dword [ebp - 0x278]
sar eax, 1
jmp 0x7dd7a547