Function at 0x4274e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x208
call fcn.0042ffe1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42774b
push 0x208
push 0
push ebx
call fcn.00449a10
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
test eax, eax
je 0x427743
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x38]
mov eax, edi
call fcn.00428330
mov dword [ebp - 4], eax
test eax, eax
je 0x427561
push edi
lea edi, [ebp - 4]
call fcn.00428020
push ebx
mov dword [esi + 0x14], 0xb7
call fcn.00444f30
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
call fcn.004271a0
test al, al
jne 0x427546
push 0
push 0x42000001
push 3
push 0
push 7
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x427739
cmp dword [ebp + 0x10], 0
je 0x42759d
push ebx
push esi
call fcn.00427240
cmp byte [esi + 4], 0
je 0x42770c
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4276e5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push 4
push 0x1000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x427615
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push edi
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00444f30
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push 0
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edx
mov eax, dword [eax + 8]
push esi
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, dword [ebp - 4]
jne 0x427742
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
push edi
push 1
push edx
mov edx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.004285e0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push 0
push esi
push 0
push 0x13
push eax
push 0x2800
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
test eax, eax
je 0x42768f
mov eax, dword [ebp + 8]
push ebx
mov dword [eax + 0x14], 0
call fcn.00444f30
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0x8000
mov dword [ecx + 0x14], eax
mov edx, dword [esi + 0x18]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x38]
call fcn.00428620
push ebx
call fcn.00444f30
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push edi
mov dword [edx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00444f30
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x38]
mov edx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 1
push eax
mov ecx, ebx
call fcn.004285e0
push ebx
call fcn.00444f30
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14], eax
push ebx
call fcn.00444f30
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc