Function at 0x100047dd
Capabilities:
Query environment variable

Disassembly:
push 0x298
push 0x10006638
call fcn.10006224
xor ebx, ebx
mov dword [ebp - 0x298], ebx
push 0x50
push ebx
lea eax, [ebp - 0x74]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x20a
push ebx
lea eax, [ebp - 0x284]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x2a4], ebx
xor eax, eax
lea edi, [ebp - 0x294]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2a8], 0xa
xor edi, edi
inc edi
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x2a0]
call fcn.100045f5
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
jne 0x100049f1
cmp dword [ebp - 0x29c], eax
jne 0x10004887
mov esi, edi
jmp 0x100049eb
mov edx, dword [ebp - 0x2a0]
test edx, edx
je 0x100048a8
mov esi, 0x10002028
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x100048a8
inc ecx
cmp ecx, 4
jne 0x10004898
jmp 0x10004880
push 0x28
lea eax, [ebp - 0x74]
push eax
push edx
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov esi, 0x104
push esi
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100048ff
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100048e7
movzx esi, si
or esi, 0x80070000
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10007014
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
jmp 0x10004a17
cmp eax, esi
jbe 0x10004920
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10007014
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
mov eax, 0x8007006f
jmp 0x10004a19
push dword [ebp - 0x2a8]
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x74]
call fcn.10013eb3
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
xor eax, eax
mov word [0x10008f70], ax
movzx eax, word [ebp - 0x288]
push eax
movzx eax, word [ebp - 0x28a]
push eax
movzx eax, word [ebp - 0x28c]
push eax
movzx eax, word [ebp - 0x28e]
push eax
movzx eax, word [ebp - 0x292]
push eax
movzx eax, word [ebp - 0x294]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x284]
push eax
push 0x10001c40
push esi
mov edi, 0x10008d68
push edi
call fcn.10003c11
add esp, 0x2c
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x100049f1
push ebx
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
push 0x10001c90
push 0x10001ccc
call fcn.10013eb3
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x100049f1
push ebx
push edi
call dword [sym.imp.msvcrt.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x100049f1
mov esi, 0x80004005
mov dword [ebp - 0x298], esi
mov dword [ebp - 4], ebx
call fcn.10004a01
jmp 0x10004a10
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.1000626c
ret