Function at 0x100231d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087f59
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x101722a0]
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 0x1002355b
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 [0x10176e9c]
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 0x100248d0
call fcn.100734bd
add esp, 4
mov dword [ebp - 0x130], eax
jmp 0x10023280
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea eax, [eax + ecx*4]
cmp esi, eax
jae 0x100232f9
mov eax, dword [esi]
add esi, 4
mov dword [ebp - 0x120], esi
cmp eax, 0xffffffff
je 0x100232f9
lea ecx, [ebp - 0x138]
push ecx
push eax
mov ecx, dword [edi + 0x1e4]
call fcn.100264c0
cmp dword [ebp - 0x138], 1
jne 0x100232e8
lea ecx, [ebp - 0x120]
push ecx
push eax
mov ecx, edi
call fcn.10023580
mov esi, eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x12c], esi
test esi, esi
jne 0x100232f9
mov esi, dword [ebp - 0x120]
jmp 0x10023280
mov eax, 0xffffffe2
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], eax
push dword [ebp - 0x130]
call fcn.100734bd
add esp, 4
mov dword [ebp - 0x124], ebx
cmp dword [edi + 0x1e0], ebx
je 0x100233e1
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 0x100233e1
push 0x4000
push dword [ebp - 0x124]
call fcn.10073a98
add esp, 8
test eax, eax
je 0x100233e1
push 0x1008e5d4
push eax
call fcn.10073d39
add esp, 8
mov edx, eax
mov dword [ebp - 0x11c], edx
test edx, edx
je 0x100233e1
mov edi, edi
cmp ebx, dword [edi + 0x1e0]
jae 0x100233cd
mov ecx, dword [edi + 0x1dc]
add ecx, ebx
mov esi, ecx
lea eax, [esi + 1]
mov dword [ebp - 0x130], eax
jmp 0x100233a0
mov al, byte [esi]
inc esi
test al, al
jne 0x100233a0
sub esi, dword [ebp - 0x130]
inc esi
push ecx
push 0x1008e5d8
push edx
call fcn.100742b5
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x128], ebx
mov edx, dword [ebp - 0x11c]
jmp 0x10023380
push edx
call fcn.10073f61
push dword [ebp - 0x11c]
call fcn.10073cc2
add esp, 8
cmp dword [0x10174424], 0
je 0x10023413
xor edx, edx
mov dword [ebp - 0x128], edx
cmp edx, dword [edi + 0x1e0]
jae 0x10023413
mov ecx, dword [edi + 0x1dc]
add ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023405
sub ecx, esi
inc edx
add edx, ecx
jmp 0x100233ec
cmp dword [0x10174428], 0
je 0x10023520
mov dword [ebp - 0x11c], 0
xor esi, esi
mov dword [ebp - 0x128], esi
push str.mkdir__systemdrive_IntelOpenCLPrintf_2__nul
call fcn.100734f6
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 0x10023460
sub ecx, edx
push str.IntelOpenCLPrintfPrintfOutput.txt
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1007362a
push 0x1008e640
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1007415e
add esp, 0x18
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x10023520
push str.PRINTF_START_____n
push eax
call fcn.100742b5
add esp, 8
cmp esi, dword [edi + 0x1e0]
jae 0x100234f8
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 0x100234d0
sub ecx, ebx
inc esi
add esi, ecx
mov dword [ebp - 0x128], esi
push edx
push 0x1008e5d8
push dword [ebp - 0x11c]
call fcn.100742b5
add esp, 0xc
jmp 0x100234b5
push str._n______PRINTF_END_n
push dword [ebp - 0x11c]
call fcn.100742b5
push dword [ebp - 0x11c]
call fcn.10073cc2
add esp, 0xc
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x134]
jmp 0x1002355d
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.10071c54
mov esp, ebp
pop ebp
ret 4