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

Disassembly:
push 0x290
push 0x7dd7a588
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 0x7ddaf02a
push 0x8001
call fcn.7dd71ac5
mov dword [ebp - 0x298], eax
mov dword [ebp - 4], ebx
push esi
call fcn.7dd71add
cmp eax, 0xffffffff
je 0x7dd7a60a
push esi
call fcn.7dd7a1d4
cmp eax, ebx
je 0x7dd8d884
cmp word [eax], bx
je 0x7dd8d884
push ebx
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x278]
push ecx
push eax
call fcn.7dd7a201
test eax, eax
je 0x7dd8d884
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x7dd7a396
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 0x7dd8cd01
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 0x7dd7a469
test eax, eax
je 0x7dd7a469
mov ecx, dword [ebp - 0x280]
cmp eax, ecx
jb 0x7dd7a688
add esi, ecx
cmp eax, esi
jb 0x7dd7a693
cmp eax, ecx
jb 0x7dd7a688
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 0x7dd7a4c6
mov ecx, dword [ebp - 0x270]
cmp dword [ebp + 0x10], ecx
jbe 0x7dd7a4c6
cmp dword [ebp - 0x280], 0
je 0x7dd7a4c6
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.7dd74499
mov word [ebx], si
cmp eax, 0xffffffff
je 0x7dd8cd0e
push eax
call fcn.7dd7448e
lea eax, [ebp - 0x240]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7a4fb
sub eax, edx
sar eax, 1
je 0x7ddaf039
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 0x7dd7a554
cmp dword [ebp - 0x28c], 0
je 0x7dd7a554
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 0x7dd7a5a4
push 0
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x278]
push eax
push ebx
call fcn.7dd7a201
test eax, eax
je 0x7dd7a5a4
mov ebx, dword [ebp - 0x288]
jmp 0x7dd7a47b
cmp dword [ebp - 0x270], 0
je 0x7dd7a60a
mov eax, dword [ebp - 0x284]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd7a5b6
sub eax, edx
sar eax, 1
add dword [ebp - 0x270], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x270]
jbe 0x7dd91df7
cmp dword [ebp - 0x28c], 0
je 0x7dd91df7
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 0x7dd8cceb
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd7a634
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 0x7dd7a469
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 0x7dd8cd01
mov dword [ebp - 0x274], edi
mov ebx, dword [ebp - 0x288]
jmp 0x7dd7a46f
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7dd8cca9
sub eax, edx
sar eax, 1
mov dword [ebp - 0x270], eax
cmp dword [ebp + 0x10], eax
jbe 0x7dd8d88e
cmp edi, ebx
je 0x7dd8d88e
cmp edi, esi
je 0x7dd7a60a
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
jmp 0x7dd7a60a
mov eax, dword [ebp - 0x270]
lea eax, [eax + eax + 2]
push eax
push edi
push dword [ebp - 0x28c]
call esi
jmp 0x7dd8cce3
push 8
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd7a60a
and dword [ebp - 0x270], 0
jmp 0x7dd7a5a4
mov eax, esi
lea edx, [eax + 2]
jmp 0x7dd8cca9
inc eax
mov dword [ebp - 0x270], eax
jmp 0x7dd7a60a
inc dword [ebp - 0x270]
jmp 0x7dd7a60a
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd7a627
mov eax, ebx
sub eax, dword [ebp - 0x278]
sar eax, 1
jmp 0x7dd7a51b