Function at 0x10004666
Capabilities:
Query environment variable

Disassembly:
push 0x298
push 0x100060a8
call fcn.10005ee8
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.10004474
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
jne 0x1000487a
cmp dword [ebp - 0x29c], eax
jne 0x10004710
mov esi, edi
jmp 0x10004874
mov edx, dword [ebp - 0x2a0]
test edx, edx
je 0x10004731
mov esi, 0x10001f10
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x10004731
inc ecx
cmp ecx, 4
jne 0x10004721
jmp 0x10004709
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 0x10004788
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10004770
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 0x100048a0
cmp eax, esi
jbe 0x100047a9
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10007014
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
mov eax, 0x8007006f
jmp 0x100048a2
push dword [ebp - 0x2a8]
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x74]
call fcn.10013dfc
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 0x10001c48
push esi
mov edi, 0x10008d68
push edi
call fcn.10003ab4
add esp, 0x2c
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x1000487a
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 0x10001c98
push 0x10001cd4
call fcn.10013dfc
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x1000487a
push ebx
push edi
call dword [sym.imp.msvcrt.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x1000487a
mov esi, 0x80004005
mov dword [ebp - 0x298], esi
mov dword [ebp - 4], ebx
call fcn.1000488a
jmp 0x10004899
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret