Function at 0x100387d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov esi, ecx
lea ecx, [esp + 0x4c]
push dword [ebp + 8]
call fcn.10037e80
add esp, 4
mov eax, dword [esp + 0x4c]
cmp eax, 0x80000000
jne 0x10038844
cmp byte [esp + 0x50], 3
jne 0x10038839
mov dword [esp], esi
mov esi, dword [esp + 0x54]
mov edi, dword [esi + 4]
mov ebx, dword [esi]
mov eax, dword [edi]
test eax, eax
je 0x1003881a
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x1003882a
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.10006c20
mov ecx, esi
mov edx, 4
call fcn.10006c20
mov esi, dword [esp]
mov dword [esi], 0x80000000
jmp 0x100389fe
mov ecx, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], ecx
cmp ebx, 0x201
jae 0x100388b0
jmp 0x1003889e
jbe 0x10038938
cmp ebx, 0x201
jae 0x100388b0
mov dword [esp + 0x1c], 0x200
lea esi, [esp + 0x4c]
mov edi, ebx
jmp 0x100388e3
mov edi, dword [esp + 0x20]
sub ebx, edi
je 0x100388d3
mov edx, edi
lea ecx, [esp + 4]
push ebx
call fcn.10018d80
add esp, 4
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push esi
push dword [esp + 0x18]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x10038908
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10038990
cmp ebx, edi
jne 0x10038890
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10038a1c
lea ebx, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x1003889e
jmp 0x100388b0
mov edx, dword [esp + 0x1c]
cmp ebx, edx
ja 0x10038a35
mov edx, esi
lea ecx, [esp + 0x3c]
push ebx
call fcn.10017730
add esp, 4
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x10038982
mov ecx, dword [esp + 8]
mov edx, 2
movdqa xmmword [esp + 0x20], xmm0
call fcn.10006c20
movdqa xmm0, xmmword [esp + 0x20]
cmp esi, 0x80000000
jne 0x10038a06
movd edi, xmm0
jmp 0x100389ae
call sub.KERNEL32.dll_GetLastError
cmp dword [esp + 4], 0
mov edi, eax
je 0x100389ac
mov ecx, dword [esp + 8]
mov edx, 2
call fcn.10006c20
xor ebx, ebx
mov eax, dword [esp]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x100389e9
mov ebx, dword [edi + 4]
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x100389cd
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x100389dd
mov edx, dword [ebx + 8]
mov ecx, esi
call fcn.10006c20
mov ecx, edi
mov edx, 4
call fcn.10006c20
cmp dword [esp + 0x14], 0
je 0x100389fe
mov ecx, dword [esp + 0x10]
mov edx, 2
call fcn.10006c20
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp]
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
cmp dword [esp + 0x14], 0
jne 0x100389f0
jmp 0x100389fe
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code
push 0x1007d124
call fcn.10008230
add esp, 4
jmp 0x10038a44
mov ecx, ebx
push 0x1007d114
call fcn.10007fd0
add esp, 4
ud2