Function at 0x7ddfa304
Capabilities:
Check if file exists
Get file attributes
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0x2d8
push 0x7ddfb490
call fcn.7dd725e8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2bc], ecx
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2b4], eax
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x238], 0xc0000001
xor edx, edx
mov dword [ebp - 0x2b8], edx
mov esi, 0x7ddfb4ac
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x278], edx
cmp ecx, edx
je 0x7ddfb441
mov esi, 0x8000
cmp word [ecx], si
ja 0x7ddfb441
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x264], edx
and dword [ebp + 8], 0xfffffff0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x10]
cmp dword [ecx + 0x10], edx
je 0x7ddfa3ed
test byte [ebp + 0x24], 0x10
mov byte [ebp - 0x245], dl
je 0x7ddfa3f4
mov byte [ebp - 0x245], 1
mov dword [ebp - 4], edx
cmp dword [ebp + 8], 0x10
jne 0x7ddfa45c
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
cmp eax, edx
je 0x7ddfa504
test dword [eax + 0x2c], 0x100
je 0x7ddfa504
mov ecx, dword [eax + 0x38]
mov dword [ebx + 0x48], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebx + 0x4c], ecx
mov eax, dword [eax + 0x40]
mov dword [ebx + 0x50], eax
mov esi, 0x10000003
mov eax, dword [ebx + 0x48]
and eax, esi
xor edx, edx
cmp eax, 3
jne 0x7ddfa442
mov dword [ebx + 0x48], edx
mov eax, dword [ebx + 0x4c]
and eax, esi
cmp eax, 3
jne 0x7ddfa44f
mov dword [ebx + 0x4c], edx
mov eax, dword [ebx + 0x50]
and eax, esi
cmp eax, 3
jne 0x7ddfa45c
mov dword [ebx + 0x50], edx
cmp dword [ebp + 8], 0x40
jne 0x7ddfa469
mov byte [ebp - 0x245], 1
mov eax, dword [ebp - 0x260]
movzx eax, word [eax]
cmp ax, 0x20
je 0x7ddfb30f
cmp ax, 9
je 0x7ddfb30f
mov eax, dword [ebp - 0x260]
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, dx
jne 0x7ddfa48f
sub eax, esi
sar eax, 1
mov dword [ebp - 0x23c], eax
add eax, 0x105
mov dword [ebp - 0x2d4], eax
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2d8], eax
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x2d4]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x200000
push ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x2ac], edi
test edi, edi
jne 0x7ddfa5c6
mov dword [ebp - 0x238], 0xc0000017
jmp 0x7ddfb2f8
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x18]
mov dword [ebx + 0x48], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x20]
mov dword [ebx + 0x50], ecx
mov eax, dword [eax]
test dword [eax + 0x68], 0x600
je 0x7ddfa42e
mov eax, dword [ebx + 0x48]
mov esi, 0x10000003
cmp eax, edx
je 0x7ddfa557
mov ecx, eax
and ecx, esi
cmp ecx, 3
je 0x7ddfa557
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_GetHandleInformation
test eax, eax
jne 0x7ddfa557
and dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x7ddfa588
mov ecx, eax
and ecx, esi
cmp ecx, 3
je 0x7ddfa588
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_GetHandleInformation
test eax, eax
jne 0x7ddfa588
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebx + 0x4c]
jne 0x7ddfa584
and dword [ebx + 0x50], 0
and dword [ebx + 0x4c], 0
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x7ddfa433
cmp eax, dword [ebx + 0x4c]
je 0x7ddfa433
mov ecx, eax
and ecx, esi
cmp ecx, 3
je 0x7ddfa433
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_GetHandleInformation
test eax, eax
jne 0x7ddfa433
and dword [ebx + 0x50], eax
jmp 0x7ddfa433
push esi
push edi
push dword [ebp - 0x260]
call fcn.7dd7ce7b
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x7ddfb2ee
cmp eax, esi
ja 0x7ddfb2ee
push edi
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
movzx eax, word [ebp - 0x280]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2a4], esi
mov ecx, dword [ebp - 0x25c]
dec dword [ebp - 0x25c]
test ecx, ecx
je 0x7ddfa66f
mov cl, byte [eax]
cmp cl, 0x2e
je 0x7ddfa66f
cmp cl, 0x5c
jne 0x7ddfa660
mov dword [ebp - 0x2a4], esi
jmp 0x7ddfa666
inc dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x2d0], eax
jmp 0x7ddfa63c
mov eax, dword [ebp - 0x260]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa678
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 0x23c], edi
push 0x22
pop eax
mov esi, dword [ebp - 0x2c4]
cmp ax, word [esi]
jne 0x7ddfa6e7
lea ecx, [esi + 2]
mov dword [ebp - 0x240], ecx
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa6bd
push 0x22
pop edx
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
cmp dx, ax
jne 0x7ddfa6a5
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa78e
push 0x20
pop edx
cmp dx, ax
je 0x7ddfa6dd
push 9
pop edx
cmp dx, ax
jne 0x7ddfa78e
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
jmp 0x7ddfa6bd
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa6ec
sub eax, edx
sar eax, 1
cmp edi, eax
ja 0x7ddfa717
push edi
push esi
push dword [ebp - 0x260]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7ddfa717
lea ecx, [esi + edi*2]
jmp 0x7ddfa6df
mov ecx, esi
mov dword [ebp - 0x240], ecx
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa737
cmp ax, 0x20
je 0x7ddfa733
cmp ax, 9
jne 0x7ddfa737
inc ecx
inc ecx
jmp 0x7ddfa719
cmp word [ecx], 0x22
jne 0x7ddfa764
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa6bd
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
cmp ax, 0x22
jne 0x7ddfa745
jmp 0x7ddfa6bd
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa6bd
cmp ax, 0x20
je 0x7ddfa6bd
cmp ax, 9
je 0x7ddfa6bd
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
jmp 0x7ddfa764
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x7ddfa793
sub eax, esi
sar eax, 1
mov dword [ebp - 0x25c], eax
add eax, eax
mov word [ebp - 0x254], ax
mov eax, dword [ebp - 0x254]
add eax, 2
mov word [ebp - 0x252], ax
mov dword [ebp - 0x250], ecx
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
mov eax, 0x80
sub eax, dword [ebp - 0x2a4]
movzx ecx, word [ebp - 0x274]
cmp ecx, eax
jb 0x7ddfa80f
mov dword [ebp - 0x238], 0xc000000d
jmp 0x7ddfb2f8
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2c8], eax
mov eax, dword fs:[0x18]
mov esi, 0x208
push esi
mov ecx, dword [ebp - 0x2c8]
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 - 0x258], eax
test eax, eax
je 0x7ddfa4f5
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2cc], eax
mov eax, dword fs:[0x18]
push esi
mov ecx, dword [ebp - 0x2cc]
add ecx, 0x200000
push ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov dword [ebp - 0x264], eax
test eax, eax
je 0x7ddfa4f5
mov esi, 0x104
cmp dword [ebp + 8], 0x20
jne 0x7ddfa8b4
mov eax, 0x7ddfb474
push eax
push esi
push dword [ebp - 0x258]
call fcn.7dd73da0
xor edi, edi
mov dword [ebp - 0x23c], edi
jmp 0x7ddfa95e
cmp dword [ebp - 0x23c], esi
jae 0x7ddfa800
push dword [ebp - 0x260]
push esi
mov edi, dword [ebp - 0x258]
push edi
call fcn.7dd73da0
push 0x2e
push edi
call sub.ntdll.dll_wcsrchr
pop ecx
pop ecx
mov dword [ebp - 0x240], eax
test eax, eax
je 0x7ddfa800
mov ecx, edi
sub ecx, eax
sar ecx, 1
add ecx, esi
cmp ecx, 5
jb 0x7ddfa800
lea ecx, [ebp - 0x28]
push ecx
push 0xa
push eax
call fcn.7ddefb1c
push edi
call fcn.7dd71add
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x7ddfa94e
test al, 0x10
jne 0x7ddfa94e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa922
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov dword [ebp - 0x23c], edi
push edi
push dword [ebp - 0x258]
push esi
push dword [ebp - 0x264]
call fcn.7dd78982
jmp 0x7ddfa956
xor edi, edi
mov dword [ebp - 0x23c], edi
test edi, edi
jne 0x7ddfaa14
push 0x5c
push dword [ebp - 0x258]
call sub.ntdll.dll_wcsrchr
pop ecx
pop ecx
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x7ddfa98c
push 0x3a
push dword [ebp - 0x258]
call sub.ntdll.dll_wcsrchr
pop ecx
pop ecx
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
add dword [ebp - 0x240], 2
test eax, eax
je 0x7ddfa9d7
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x240]
movzx eax, word [eax]
test ax, ax
je 0x7ddfa9d1
cmp ax, 0x20
je 0x7ddfa9d1
cmp ax, 9
je 0x7ddfa9d1
mov word [ecx + edi*2], ax
inc edi
mov dword [ebp - 0x23c], edi
add dword [ebp - 0x240], 2
jmp 0x7ddfa9a3
xor eax, eax
mov word [ecx + edi*2], ax
test edi, edi
je 0x7ddfaa09
push 0
push dword [ebp - 0x264]
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x258]
push 0
call fcn.7dd75266
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, esi
jae 0x7ddfa4f5
test edi, edi
jne 0x7ddfaa14
xor eax, eax
mov ecx, dword [ebp - 0x264]
mov word [ecx], ax
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x2a8], 0
jne 0x7ddfaaef
push eax
mov edi, 0x20a
push edi
call dword [sym.imp.ntdll.dll_RtlGetCurrentDirectory_U]
mov dword [ebp - 0x25c], eax
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x234], cx
mov esi, 0x105
push esi
lea eax, [ebp - 0x234]
push eax
push eax
call fcn.7dd7ce7b
mov dword [ebp - 0x25c], eax
cmp eax, esi
ja 0x7ddfb2f8
test eax, eax
jne 0x7ddfaa90
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx eax, word [ebp - 0x254]
shr eax, 1
mov dword [ebp - 0x25c], eax
jmp 0x7ddfaaad
lea ecx, [eax + eax]
mov word [ebp - 0x254], cx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x250], ecx
mov word [ebp - 0x252], di
add eax, 0xfffffffe
cmp eax, 0x40
ja 0x7ddfaad3
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x238], eax
jmp 0x7ddfaadd
mov dword [ebp - 0x238], 0xc000000d
cmp dword [ebp - 0x238], 0
jge 0x7ddfaba1
jmp 0x7ddfb2f8
push 0
push eax
mov esi, 0x105
push esi
push dword [ebp - 0x2a8]
call fcn.7dd741e1
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x7ddfab29
cmp eax, esi
ja 0x7ddfb2f8
push esi
lea eax, [ebp - 0x234]
push eax
push eax
call fcn.7dd7ce7b
mov dword [ebp - 0x25c], eax
cmp eax, esi
ja 0x7ddfb2f8
test eax, eax
je 0x7ddfab58
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x250], ecx
add eax, eax
mov word [ebp - 0x254], ax
mov eax, 0x20a
mov word [ebp - 0x252], ax
jmp 0x7ddfab6b
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
movzx eax, word [ebp - 0x26c]
dec eax
dec eax
cmp eax, 0x40
jg 0x7ddfa800
mov eax, dword [ebp - 0x268]
mov al, byte [eax]
cmp al, 0x5a
movsx eax, al
jg 0x7ddfabb5
sub eax, 0x41
jmp 0x7ddfabb8
sub eax, 0x61
mov word [ebx + 0x98], ax
mov esi, dword [ebp - 0x2b4]
test esi, esi
je 0x7ddfac6a
test dword [esi + 0x2c], 0x200
je 0x7ddfac6a
mov eax, dword [esi + 4]
test eax, eax
je 0x7ddfabf4
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfabe4
sub eax, edx
sar eax, 1
jmp 0x7ddfabf6
xor eax, eax
lea edi, [eax + eax + 0x2a]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x2e0], eax
mov eax, dword fs:[0x18]
push edi
mov ecx, dword [ebp - 0x2e0]
add ecx, 0x200000
push ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x278], eax
test eax, eax
je 0x7ddfac6a
mov eax, dword [esi + 4]
test eax, eax
jne 0x7ddfac3e
mov eax, 0x7dd759f8
push eax
push dword [esi + 0x38]
push 0x7ddfb458
push edi
push dword [ebp - 0x278]
call fcn.7dd76692
add esp, 0x14
and dword [esi + 0x2c], 0xfffffdff
and dword [esi + 0x38], 0
mov eax, dword [ebp - 0x278]
mov dword [esi + 4], eax
mov dword [ebp - 0x244], 2
movzx ecx, word [ebp - 0x274]
add ecx, 6
push 0xfffffffffffffffc
pop edi
and ecx, edi
mov dword [ebp - 0x23c], ecx
movzx eax, word [ebp - 0x280]
add eax, 4
and eax, edi
add ecx, eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x2bc]
movzx eax, word [eax]
test ax, ax
je 0x7ddfacc5
mov dword [ebp - 0x244], 3
movzx eax, ax
add eax, 3
and eax, edi
add ecx, eax
mov dword [ebp - 0x23c], ecx
cmp word [ebp - 0x26c], 0
je 0x7ddface9
inc dword [ebp - 0x244]
movzx eax, word [ebp - 0x26c]
add eax, 4
and eax, edi
add ecx, eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x7ddfad43
cmp word [eax], 0
je 0x7ddfad43
inc dword [ebp - 0x244]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
movzx eax, word [ebp - 0x288]
add eax, 4
and eax, edi
add dword [ebp - 0x23c], eax
test esi, esi
je 0x7ddfae4b
add dword [ebp - 0x23c], 0x44
inc dword [ebp - 0x244]
mov eax, dword [esi + 8]
test eax, eax
je 0x7ddfada9
inc dword [ebp - 0x244]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
movzx eax, word [ebp - 0x290]
add eax, 4
and eax, edi
add dword [ebp - 0x23c], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x7ddfadfa
inc dword [ebp - 0x244]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
movzx eax, word [ebp - 0x298]
add eax, 4
and eax, edi
add dword [ebp - 0x23c], eax
mov esi, dword [esi + 4]
test esi, esi
je 0x7ddfae4b
inc dword [ebp - 0x244]
push esi
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x238], eax
test eax, eax
jl 0x7ddfb2f8
movzx eax, word [ebp - 0x2a0]
add eax, 4
and eax, edi
add dword [ebp - 0x23c], eax
cmp dword [ebp - 0x2b0], 0
je 0x7ddfae7b
inc dword [ebp - 0x244]
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2b0]
call fcn.7ddf9dcd
test eax, eax
jl 0x7ddfa800
add dword [ebp - 0x23c], 8
push dword [ebp - 0x23c]
push dword [ebp - 0x244]
call dword [sym.imp.ntdll.dll_CsrAllocateCaptureBuffer]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x7ddfa4f5
lea edi, [ebx + 0x5c]
push edi
movzx eax, word [ebp - 0x274]
add eax, 6
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
mov esi, dword [sym.imp.ntdll.dll_CsrAllocateMessagePointer]
call esi
movzx eax, word [ebp - 0x274]
push eax
push dword [ebp - 0x270]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x274]
mov ecx, dword [edi]
mov byte [eax + ecx], 0xd
movzx eax, word [ebp - 0x274]
mov ecx, dword [edi]
mov byte [eax + ecx + 1], 0xa
movzx eax, word [ebp - 0x274]
mov ecx, dword [edi]
mov byte [eax + ecx + 2], 0
mov eax, dword [ebp - 0x274]
add eax, 3
mov word [ebx + 0x90], ax
lea edi, [ebx + 0x60]
push edi
movzx eax, word [ebp - 0x280]
add eax, 4
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [ebp - 0x280]
push eax
push dword [ebp - 0x27c]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x280]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x280]
inc eax
mov word [ebx + 0x92], ax
cmp dword [ebp - 0x284], 0
je 0x7ddfafb1
lea edi, [ebx + 0x64]
push edi
movzx eax, word [ebp - 0x288]
add eax, 4
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [ebp - 0x288]
push eax
push dword [ebp - 0x284]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x288]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x288]
inc eax
mov word [ebx + 0x94], ax
jmp 0x7ddfafbd
xor eax, eax
mov word [ebx + 0x94], ax
and dword [ebx + 0x64], eax
mov edi, dword [ebp - 0x2bc]
movzx ecx, word [edi]
xor eax, eax
cmp cx, ax
je 0x7ddfafff
lea eax, [ebx + 0x6c]
push eax
movzx eax, cx
add eax, 3
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [edi]
push eax
push dword [edi + 4]
push dword [ebx + 0x6c]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [edi]
mov dword [ebx + 0x70], eax
xor eax, eax
jmp 0x7ddfb005
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x6c], eax
cmp word [ebp - 0x26c], ax
je 0x7ddfb05f
lea edi, [ebx + 0x68]
push edi
movzx eax, word [ebp - 0x26c]
add eax, 4
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [ebp - 0x26c]
push eax
push dword [ebp - 0x268]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x26c]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x26c]
inc eax
mov word [ebx + 0x96], ax
xor eax, eax
jmp 0x7ddfb06b
mov dword [ebx + 0x68], eax
xor ecx, ecx
mov word [ebx + 0x96], cx
cmp dword [ebp - 0x2b4], eax
je 0x7ddfb0dd
lea edi, [ebx + 0x74]
push edi
push 0x44
push dword [ebp - 0x24c]
call esi
mov ecx, dword [edi]
mov eax, dword [ebp - 0x2b4]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x14], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x18], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x1c], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x20]
mov dword [ecx + 0x20], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x24]
mov dword [ecx + 0x24], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x28]
mov dword [ecx + 0x28], edx
mov ecx, dword [edi]
mov edx, dword [eax + 0x2c]
mov dword [ecx + 0x2c], edx
mov ecx, dword [edi]
mov ax, word [eax + 0x30]
mov word [ecx + 0x30], ax
mov eax, dword [edi]
mov dword [eax], 0x44
xor eax, eax
jmp 0x7ddfb0e0
mov dword [ebx + 0x74], eax
cmp dword [ebp - 0x28c], eax
je 0x7ddfb131
lea edi, [ebx + 0x78]
push edi
movzx eax, word [ebp - 0x290]
add eax, 4
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [ebp - 0x290]
push eax
push dword [ebp - 0x28c]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x290]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
movzx eax, word [ebp - 0x290]
inc eax
jmp 0x7ddfb134
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
xor edi, edi
cmp dword [ebp - 0x294], edi
je 0x7ddfb195
lea edi, [ebx + 0x80]
push edi
movzx eax, word [ebp - 0x298]
add eax, 4
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [ebp - 0x298]
push eax
push dword [ebp - 0x294]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x298]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
movzx eax, word [ebp - 0x298]
inc eax
mov dword [ebx + 0x84], eax
xor edi, edi
jmp 0x7ddfb1a1
mov dword [ebx + 0x80], edi
mov dword [ebx + 0x84], edi
cmp dword [ebp - 0x29c], edi
je 0x7ddfb1fd
lea edi, [ebx + 0x88]
push edi
movzx eax, word [ebp - 0x2a0]
add eax, 4
and eax, 0xfffffffc
push eax
push dword [ebp - 0x24c]
call esi
movzx eax, word [ebp - 0x2a0]
push eax
push dword [ebp - 0x29c]
push dword [edi]
call sub.ntdll.dll_memmove
add esp, 0xc
movzx eax, word [ebp - 0x2a0]
mov ecx, dword [edi]
mov byte [eax + ecx], 0
movzx eax, word [ebp - 0x2a0]
inc eax
mov dword [ebx + 0x8c], eax
xor edi, edi
jmp 0x7ddfb209
mov dword [ebx + 0x88], edi
mov dword [ebx + 0x8c], edi
cmp dword [ebp - 0x2b0], edi
je 0x7ddfb235
lea edi, [ebx + 0x9c]
push edi
push 8
push dword [ebp - 0x24c]
call esi
lea eax, [ebp - 0x2e8]
push eax
push dword [edi]
call dword [sym.imp.ntdll.dll_RtlCopyLuid]
xor edi, edi
jmp 0x7ddfb23b
mov dword [ebx + 0x9c], edi
mov ecx, dword [ebp + 8]
cmp ecx, 0x20
jne 0x7ddfb249
or dword [ebx + 0x3c], 0xffffffff
jmp 0x7ddfb269
cmp byte [ebp - 0x245], 0
je 0x7ddfb257
mov dword [ebx + 0x3c], edi
jmp 0x7ddfb269
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x3c], eax
xor eax, eax
mov word [ebx + 0x9a], ax
mov dword [ebx + 0x40], ecx
call sym.KERNEL32.dll_GetConsoleCP
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x58], eax
push 0x68
push 0x10010005
push dword [ebp - 0x24c]
push ebx
call dword [sym.imp.ntdll.dll_CsrClientCallServer]
mov dword [ebp - 0x238], eax
cmp eax, 0xc0000022
jne 0x7ddfb2b7
cmp dword [ebx + 0x7c], edi
jne 0x7ddfb2b7
push dword [ebp - 0x24c]
call dword [sym.imp.ntdll.dll_CsrFreeCaptureBuffer]
jmp 0x7ddfb2f8
push dword [ebp - 0x24c]
call dword [sym.imp.ntdll.dll_CsrFreeCaptureBuffer]
cmp dword [ebp - 0x238], edi
jl 0x7ddfb2e3
cmp dword [ebx + 0x30], edi
jl 0x7ddfb2e3
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x2dc]
mov dword [ecx], eax
mov dword [ebp - 0x238], edi
jmp 0x7ddfb2f8
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x238], eax
jmp 0x7ddfb2f8
mov dword [ebp - 0x238], 0xc0000039
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddfb320
mov eax, dword [ebp - 0x238]
jmp 0x7ddfb44e
add dword [ebp - 0x260], 2
jmp 0x7ddfa469
mov esi, 0xc000000d
push esi
call sym.KERNEL32.dll_BaseSetLastNTError
mov eax, esi
call fcn.7dd72630
ret 0x28