Function at 0x100047a4
Capabilities:
Query environment variable

Disassembly:
push 0x298
push 0x100065a8
call fcn.100063bc
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.100045b2
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
jne 0x100049b8
cmp dword [ebp - 0x29c], eax
jne 0x1000484e
mov esi, edi
jmp 0x100049b2
mov edx, dword [ebp - 0x2a0]
test edx, edx
je 0x1000486f
mov esi, 0x10002028
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x1000486f
inc ecx
cmp ecx, 4
jne 0x1000485f
jmp 0x10004847
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 0x100048c6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100048ae
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 0x100049de
cmp eax, esi
jbe 0x100048e7
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10007014
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
mov eax, 0x8007006f
jmp 0x100049e0
push dword [ebp - 0x2a8]
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x74]
call fcn.10013fea
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.10003bf4
add esp, 0x2c
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x100049b8
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.10013fea
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
js 0x100049b8
push ebx
push edi
call dword [sym.imp.msvcrt.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x100049b8
mov esi, 0x80004005
mov dword [ebp - 0x298], esi
mov dword [ebp - 4], ebx
call fcn.100049c8
jmp 0x100049d7
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