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

Disassembly:
push 0x2d8
push 0x7ddfb258
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, 0x7ddfb274
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 0x7ddfb209
mov esi, 0x8000
cmp word [ecx], si
ja 0x7ddfb209
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 0x7ddfa1b5
test byte [ebp + 0x24], 0x10
mov byte [ebp - 0x245], dl
je 0x7ddfa1bc
mov byte [ebp - 0x245], 1
mov dword [ebp - 4], edx
cmp dword [ebp + 8], 0x10
jne 0x7ddfa224
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
cmp eax, edx
je 0x7ddfa2cc
test dword [eax + 0x2c], 0x100
je 0x7ddfa2cc
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 0x7ddfa20a
mov dword [ebx + 0x48], edx
mov eax, dword [ebx + 0x4c]
and eax, esi
cmp eax, 3
jne 0x7ddfa217
mov dword [ebx + 0x4c], edx
mov eax, dword [ebx + 0x50]
and eax, esi
cmp eax, 3
jne 0x7ddfa224
mov dword [ebx + 0x50], edx
cmp dword [ebp + 8], 0x40
jne 0x7ddfa231
mov byte [ebp - 0x245], 1
mov eax, dword [ebp - 0x260]
movzx eax, word [eax]
cmp ax, 0x20
je 0x7ddfb0d7
cmp ax, 9
je 0x7ddfb0d7
mov eax, dword [ebp - 0x260]
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, dx
jne 0x7ddfa257
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 0x7ddfa38e
mov dword [ebp - 0x238], 0xc0000017
jmp 0x7ddfb0c0
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 0x7ddfa1f6
mov eax, dword [ebx + 0x48]
mov esi, 0x10000003
cmp eax, edx
je 0x7ddfa31f
mov ecx, eax
and ecx, esi
cmp ecx, 3
je 0x7ddfa31f
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_GetHandleInformation
test eax, eax
jne 0x7ddfa31f
and dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x7ddfa350
mov ecx, eax
and ecx, esi
cmp ecx, 3
je 0x7ddfa350
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_GetHandleInformation
test eax, eax
jne 0x7ddfa350
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebx + 0x4c]
jne 0x7ddfa34c
and dword [ebx + 0x50], 0
and dword [ebx + 0x4c], 0
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x7ddfa1fb
cmp eax, dword [ebx + 0x4c]
je 0x7ddfa1fb
mov ecx, eax
and ecx, esi
cmp ecx, 3
je 0x7ddfa1fb
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_GetHandleInformation
test eax, eax
jne 0x7ddfa1fb
and dword [ebx + 0x50], eax
jmp 0x7ddfa1fb
push esi
push edi
push dword [ebp - 0x260]
call fcn.7dd7ceab
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x7ddfb0b6
cmp eax, esi
ja 0x7ddfb0b6
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 0x7ddfb0c0
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 0x7ddfa437
mov cl, byte [eax]
cmp cl, 0x2e
je 0x7ddfa437
cmp cl, 0x5c
jne 0x7ddfa428
mov dword [ebp - 0x2a4], esi
jmp 0x7ddfa42e
inc dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x2d0], eax
jmp 0x7ddfa404
mov eax, dword [ebp - 0x260]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa440
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 0x7ddfa4af
lea ecx, [esi + 2]
mov dword [ebp - 0x240], ecx
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa485
push 0x22
pop edx
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
cmp dx, ax
jne 0x7ddfa46d
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa556
push 0x20
pop edx
cmp dx, ax
je 0x7ddfa4a5
push 9
pop edx
cmp dx, ax
jne 0x7ddfa556
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
jmp 0x7ddfa485
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa4b4
sub eax, edx
sar eax, 1
cmp edi, eax
ja 0x7ddfa4df
push edi
push esi
push dword [ebp - 0x260]
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7ddfa4df
lea ecx, [esi + edi*2]
jmp 0x7ddfa4a7
mov ecx, esi
mov dword [ebp - 0x240], ecx
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa4ff
cmp ax, 0x20
je 0x7ddfa4fb
cmp ax, 9
jne 0x7ddfa4ff
inc ecx
inc ecx
jmp 0x7ddfa4e1
cmp word [ecx], 0x22
jne 0x7ddfa52c
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa485
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
cmp ax, 0x22
jne 0x7ddfa50d
jmp 0x7ddfa485
movzx eax, word [ecx]
test ax, ax
je 0x7ddfa485
cmp ax, 0x20
je 0x7ddfa485
cmp ax, 9
je 0x7ddfa485
inc ecx
inc ecx
mov dword [ebp - 0x240], ecx
jmp 0x7ddfa52c
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x7ddfa55b
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 0x7ddfb0c0
mov eax, 0x80
sub eax, dword [ebp - 0x2a4]
movzx ecx, word [ebp - 0x274]
cmp ecx, eax
jb 0x7ddfa5d7
mov dword [ebp - 0x238], 0xc000000d
jmp 0x7ddfb0c0
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 0x7ddfa2bd
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 0x7ddfa2bd
mov esi, 0x104
cmp dword [ebp + 8], 0x20
jne 0x7ddfa67c
mov eax, 0x7ddfb23c
push eax
push esi
push dword [ebp - 0x258]
call fcn.7dd73da0
xor edi, edi
mov dword [ebp - 0x23c], edi
jmp 0x7ddfa726
cmp dword [ebp - 0x23c], esi
jae 0x7ddfa5c8
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 0x7ddfa5c8
mov ecx, edi
sub ecx, eax
sar ecx, 1
add ecx, esi
cmp ecx, 5
jb 0x7ddfa5c8
lea ecx, [ebp - 0x28]
push ecx
push 0xa
push eax
call fcn.7ddef8fd
push edi
call sub.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x7ddfa716
test al, 0x10
jne 0x7ddfa716
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa6ea
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.7dd78972
jmp 0x7ddfa71e
xor edi, edi
mov dword [ebp - 0x23c], edi
test edi, edi
jne 0x7ddfa7dc
push 0x5c
push dword [ebp - 0x258]
call sub.ntdll.dll_wcsrchr
pop ecx
pop ecx
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x7ddfa754
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 0x7ddfa79f
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x240]
movzx eax, word [eax]
test ax, ax
je 0x7ddfa799
cmp ax, 0x20
je 0x7ddfa799
cmp ax, 9
je 0x7ddfa799
mov word [ecx + edi*2], ax
inc edi
mov dword [ebp - 0x23c], edi
add dword [ebp - 0x240], 2
jmp 0x7ddfa76b
xor eax, eax
mov word [ecx + edi*2], ax
test edi, edi
je 0x7ddfa7d1
push 0
push dword [ebp - 0x264]
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x258]
push 0
call fcn.7dd75256
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, esi
jae 0x7ddfa2bd
test edi, edi
jne 0x7ddfa7dc
xor eax, eax
mov ecx, dword [ebp - 0x264]
mov word [ecx], ax
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x2a8], 0
jne 0x7ddfa8b7
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.7dd7ceab
mov dword [ebp - 0x25c], eax
cmp eax, esi
ja 0x7ddfb0c0
test eax, eax
jne 0x7ddfa858
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 0x7ddfa875
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 0x7ddfa89b
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 0x7ddfa8a5
mov dword [ebp - 0x238], 0xc000000d
cmp dword [ebp - 0x238], 0
jge 0x7ddfa969
jmp 0x7ddfb0c0
push 0
push eax
mov esi, 0x105
push esi
push dword [ebp - 0x2a8]
call fcn.7dd741d1
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x7ddfa8f1
cmp eax, esi
ja 0x7ddfb0c0
push esi
lea eax, [ebp - 0x234]
push eax
push eax
call fcn.7dd7ceab
mov dword [ebp - 0x25c], eax
cmp eax, esi
ja 0x7ddfb0c0
test eax, eax
je 0x7ddfa920
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 0x7ddfa933
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 0x7ddfb0c0
movzx eax, word [ebp - 0x26c]
dec eax
dec eax
cmp eax, 0x40
jg 0x7ddfa5c8
mov eax, dword [ebp - 0x268]
mov al, byte [eax]
cmp al, 0x5a
movsx eax, al
jg 0x7ddfa97d
sub eax, 0x41
jmp 0x7ddfa980
sub eax, 0x61
mov word [ebx + 0x98], ax
mov esi, dword [ebp - 0x2b4]
test esi, esi
je 0x7ddfaa32
test dword [esi + 0x2c], 0x200
je 0x7ddfaa32
mov eax, dword [esi + 4]
test eax, eax
je 0x7ddfa9bc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7ddfa9ac
sub eax, edx
sar eax, 1
jmp 0x7ddfa9be
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 0x7ddfaa32
mov eax, dword [esi + 4]
test eax, eax
jne 0x7ddfaa06
mov eax, 0x7dd759e8
push eax
push dword [esi + 0x38]
push 0x7ddfb220
push edi
push dword [ebp - 0x278]
call fcn.7dd76682
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 0x7ddfaa8d
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 0x7ddfaab1
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 0x7ddfab0b
cmp word [eax], 0
je 0x7ddfab0b
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 0x7ddfb0c0
movzx eax, word [ebp - 0x288]
add eax, 4
and eax, edi
add dword [ebp - 0x23c], eax
test esi, esi
je 0x7ddfac13
add dword [ebp - 0x23c], 0x44
inc dword [ebp - 0x244]
mov eax, dword [esi + 8]
test eax, eax
je 0x7ddfab71
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 0x7ddfb0c0
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 0x7ddfabc2
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 0x7ddfb0c0
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 0x7ddfac13
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 0x7ddfb0c0
movzx eax, word [ebp - 0x2a0]
add eax, 4
and eax, edi
add dword [ebp - 0x23c], eax
cmp dword [ebp - 0x2b0], 0
je 0x7ddfac43
inc dword [ebp - 0x244]
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2b0]
call fcn.7ddf9b95
test eax, eax
jl 0x7ddfa5c8
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 0x7ddfa2bd
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 0x7ddfad79
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 0x7ddfad85
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 0x7ddfadc7
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 0x7ddfadcd
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x6c], eax
cmp word [ebp - 0x26c], ax
je 0x7ddfae27
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 0x7ddfae33
mov dword [ebx + 0x68], eax
xor ecx, ecx
mov word [ebx + 0x96], cx
cmp dword [ebp - 0x2b4], eax
je 0x7ddfaea5
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 0x7ddfaea8
mov dword [ebx + 0x74], eax
cmp dword [ebp - 0x28c], eax
je 0x7ddfaef9
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 0x7ddfaefc
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], eax
xor edi, edi
cmp dword [ebp - 0x294], edi
je 0x7ddfaf5d
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 0x7ddfaf69
mov dword [ebx + 0x80], edi
mov dword [ebx + 0x84], edi
cmp dword [ebp - 0x29c], edi
je 0x7ddfafc5
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 0x7ddfafd1
mov dword [ebx + 0x88], edi
mov dword [ebx + 0x8c], edi
cmp dword [ebp - 0x2b0], edi
je 0x7ddfaffd
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 0x7ddfb003
mov dword [ebx + 0x9c], edi
mov ecx, dword [ebp + 8]
cmp ecx, 0x20
jne 0x7ddfb011
or dword [ebx + 0x3c], 0xffffffff
jmp 0x7ddfb031
cmp byte [ebp - 0x245], 0
je 0x7ddfb01f
mov dword [ebx + 0x3c], edi
jmp 0x7ddfb031
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 0x7ddfb07f
cmp dword [ebx + 0x7c], edi
jne 0x7ddfb07f
push dword [ebp - 0x24c]
call dword [sym.imp.ntdll.dll_CsrFreeCaptureBuffer]
jmp 0x7ddfb0c0
push dword [ebp - 0x24c]
call dword [sym.imp.ntdll.dll_CsrFreeCaptureBuffer]
cmp dword [ebp - 0x238], edi
jl 0x7ddfb0ab
cmp dword [ebx + 0x30], edi
jl 0x7ddfb0ab
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x2dc]
mov dword [ecx], eax
mov dword [ebp - 0x238], edi
jmp 0x7ddfb0c0
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x238], eax
jmp 0x7ddfb0c0
mov dword [ebp - 0x238], 0xc0000039
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddfb0e8
mov eax, dword [ebp - 0x238]
jmp 0x7ddfb216
add dword [ebp - 0x260], 2
jmp 0x7ddfa231
mov esi, 0xc000000d
push esi
call sym.KERNEL32.dll_BaseSetLastNTError
mov eax, esi
call fcn.7dd72630
ret 0x28