Function at 0x100b3c0c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100d6698
xor edi, edi
cmp dword [ebx + 4], edi
jne 0x100d66b1
mov ecx, ebx
call fcn.100b3c77
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 4
push 0x100457f8
mov edx, 0x5a6
mov ecx, 0x1004407c
call fcn.100e970f
jmp 0x100b3c2f
cmp byte [ebx + 0xe], 0
mov esi, 0x4000000
jne 0x100d66e6
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegFlushKey]
test eax, eax
je 0x100d66e6
jle 0x100d66d3
movzx eax, ax
or eax, 0x80070000
push dword [ebx]
push 0x10045804
push 1
push eax
push esi
call fcn.100ab973
add esp, 0x14
push dword [ebx + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x100d66f8
and dword [ebx + 4], edi
jmp 0x100d6715
jle 0x100d6702
movzx eax, ax
or eax, 0x80070000
push dword [ebx]
push 0x1004582c
push 1
push eax
push esi
call fcn.100ab973
add esp, 0x14
cmp byte [ebx + 0xf], 0
jne 0x100d673b
push 0
push 0
push 0x10045854
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100d673b
mov byte [ebp - 0x82d], al
mov eax, 0x10045884
jmp 0x100d6747
mov byte [ebp - 0x82d], 1
mov eax, 0x1004587c
push dword [ebx]
push eax
push 0x10045888
push 0
push 0
push esi
call fcn.100ab973
add esp, 0x18
cmp byte [ebp - 0x82d], 0
je 0x100d693c
push 9
pop ecx
mov esi, 0x1002fbb0
lea edi, [ebp - 0x80c]
rep movsd dword es:[edi], dword [esi]
push 0x7da
lea eax, [ebp - 0x7e6]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
push dword [ebx]
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x80c]
and dword [ebp - 0x810], 0
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x814]
mov dword [ebp - 0x82c], 0x18
xor ecx, ecx
mov dword [ebp - 0x824], eax
push 1
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x828], ecx
push eax
mov dword [ebp - 0x820], 0x40
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x818], ecx
call dword [sym.imp.ntdll.dll_NtUnloadKey2]
mov edi, eax
or edi, 0x10000000
jge 0x100d6836
push dword [ebx]
push 0x100458b0
jmp 0x100d6829
mov edi, 0x80004005
push dword [ebx]
push 0x10045900
push 1
push edi
push 0x4000000
jmp 0x100d6966
push 0x14
pop edi
xor eax, eax
push eax
push 0x2000000
push 3
push eax
push eax
push 0x40000000
push dword [ebx + 8]
mov dword [ebp - 0x834], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x834]
call fcn.100e899b
mov esi, dword [ebp - 0x834]
mov ecx, esi
call fcn.10094ff1
test al, al
je 0x100d6914
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x20
jne 0x100d68b7
push 0xfa
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
sub edi, 1
jne 0x100d6839
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100d68ac
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x100d6822
jmp 0x100d681d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100d68ce
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x100d68d5
mov edi, 0x80004005
push dword [ebx]
push 0x100458d8
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x14
mov ecx, esi
call fcn.10094ff1
test al, al
jne 0x100b3c3a
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
jns 0x100b3c3a
push 7
pop ecx
int 0x29
jmp 0x100b3c3a
call fcn.10094ff1
test al, al
jne 0x100d692d
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
jns 0x100d692d
push 7
pop ecx
int 0x29
test edi, edi
je 0x100d6895
xor edi, edi
jmp 0x100b3c3a
push dword [ebx]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegUnLoadKeyW]
test eax, eax
je 0x100b3c3a
jle 0x100d695b
movzx eax, ax
or eax, 0x80070000
push dword [ebx]
push 0x10045948
push 1
push eax
push esi
call fcn.100ab973
add esp, 0x14
jmp 0x100b3c3a