Function at 0x10023460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100890d9
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x101ae960]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
xor ecx, ecx
mov dword [ebp - 0x134], ecx
test eax, eax
je 0x100237eb
mov edx, dword [eax]
shr edx, 2
mov dword [ebp - 0x120], edx
lea esi, [eax + 4]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [0x101b36e8]
mov eax, dword [eax + 0x764]
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x124]
cmp eax, edx
lea eax, [ebp - 0x120]
cmovae ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x140], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10024b40
call fcn.10073be8
add esp, 4
mov dword [ebp - 0x130], eax
jmp 0x10023510
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea eax, [eax + ecx*4]
cmp esi, eax
jae 0x10023589
mov eax, dword [esi]
add esi, 4
mov dword [ebp - 0x120], esi
cmp eax, 0xffffffff
je 0x10023589
lea ecx, [ebp - 0x138]
push ecx
push eax
mov ecx, dword [edi + 0x1e4]
call fcn.100265c0
cmp dword [ebp - 0x138], 1
jne 0x10023578
lea ecx, [ebp - 0x120]
push ecx
push eax
mov ecx, edi
call fcn.10023810
mov esi, eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x12c], esi
test esi, esi
jne 0x10023589
mov esi, dword [ebp - 0x120]
jmp 0x10023510
mov eax, 0xffffffe2
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], eax
push dword [ebp - 0x130]
call fcn.10073be8
add esp, 4
mov dword [ebp - 0x124], ebx
cmp dword [edi + 0x1e0], ebx
je 0x10023671
push 2
push 1
push 0
lea eax, [ebp - 0x124]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10023671
push 0x4000
push dword [ebp - 0x124]
call fcn.100741e0
add esp, 8
test eax, eax
je 0x10023671
push 0x1008f5a0
push eax
call fcn.10074481
add esp, 8
mov edx, eax
mov dword [ebp - 0x11c], edx
test edx, edx
je 0x10023671
mov edi, edi
cmp ebx, dword [edi + 0x1e0]
jae 0x1002365d
mov ecx, dword [edi + 0x1dc]
add ecx, ebx
mov esi, ecx
lea eax, [esi + 1]
mov dword [ebp - 0x130], eax
jmp 0x10023630
mov al, byte [esi]
inc esi
test al, al
jne 0x10023630
sub esi, dword [ebp - 0x130]
inc esi
push ecx
push 0x1008f5a4
push edx
call fcn.10074a01
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x128], ebx
mov edx, dword [ebp - 0x11c]
jmp 0x10023610
push edx
call fcn.100746a9
push dword [ebp - 0x11c]
call fcn.1007440a
add esp, 8
cmp dword [0x101b0c64], 0
je 0x100236a3
xor edx, edx
mov dword [ebp - 0x128], edx
cmp edx, dword [edi + 0x1e0]
jae 0x100236a3
mov ecx, dword [edi + 0x1dc]
add ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023695
sub ecx, esi
inc edx
add edx, ecx
jmp 0x1002367c
cmp dword [0x101b0c68], 0
je 0x100237b0
mov dword [ebp - 0x11c], 0
xor esi, esi
mov dword [ebp - 0x128], esi
push str.mkdir__systemdrive_IntelOpenCLPrintf_2__nul
call fcn.10073c21
add esp, 4
push 0x104
lea eax, [ebp - 0x118]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100236f0
sub ecx, edx
push str.IntelOpenCLPrintfPrintfOutput.txt
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.10073d6b
push 0x1008f60c
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.100748aa
add esp, 0x18
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x100237b0
push str.PRINTF_START_____n
push eax
call fcn.10074a01
add esp, 8
cmp esi, dword [edi + 0x1e0]
jae 0x10023788
mov edx, dword [edi + 0x1dc]
add edx, esi
mov ecx, edx
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023760
sub ecx, ebx
inc esi
add esi, ecx
mov dword [ebp - 0x128], esi
push edx
push 0x1008f5a4
push dword [ebp - 0x11c]
call fcn.10074a01
add esp, 0xc
jmp 0x10023745
push str._n______PRINTF_END_n
push dword [ebp - 0x11c]
call fcn.10074a01
push dword [ebp - 0x11c]
call fcn.1007440a
add esp, 0xc
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x134]
jmp 0x100237ed
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10072374
mov esp, ebp
pop ebp
ret 4