Function at 0x4214b4
Capabilities:
Query environment variable

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4f], 0xc1eb1542
mov dword [ebp - 0x4b], 0x7c90ec48
mov byte [ebp - 0x47], 0x42
mov al, byte [0x4dd6d8]
test al, al
jne 0x421516
mov dword [esp], 0x4dd6d8
call fcn.004ceb90
test eax, eax
je 0x421516
lea eax, [ebp - 0x4f]
mov ecx, 0x4df4e0
mov dword [esp], eax
call fcn.0042e96c
push eax
mov dword [esp], 0x4cff8c
call fcn.004013f0
mov dword [esp], 0x4dd6d8
call fcn.004cec60
mov ecx, 0x4df4e0
lea edi, [ebp - 0x4f]
lea ebx, [ebp - 0x4f]
mov esi, 0x4dd0e0
call fcn.0042e93c
mov dword [esp], 0x4df4e0
call fcn.00422510
mov ecx, 0x37
mov dword [ebp - 0x53], 0xbd60ae56
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x4dd6b0]
test al, al
jne 0x421584
mov dword [esp], 0x4dd6b0
call fcn.004ceb90
test eax, eax
je 0x421584
mov dword [esp], ebx
mov ecx, 0x4df3e0
call fcn.0042e834
push edi
mov dword [esp], 0x4cff90
call fcn.004013f0
mov dword [esp], 0x4dd6b0
call fcn.004cec60
mov ecx, 0x4df3e0
call fcn.0042e804
mov dword [esp], 0x4df3e0
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4215a3
lea eax, [ebp - 0x53]
call eax
lea eax, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x4f], 0xc1eb1542
mov dword [ebp - 0x5c], eax
sub esp, 0x10
mov dword [ebp - 0x4b], 0x7c90ec48
mov byte [ebp - 0x47], 0x42
mov al, byte [0x4dd6b8]
test al, al
jne 0x42161b
mov dword [esp], 0x4dd6b8
call fcn.004ceb90
test eax, eax
je 0x42161b
mov dword [esp], ebx
mov ecx, 0x4df420
call fcn.0042e96c
push esi
mov dword [esp], 0x4cff9c
call fcn.004013f0
mov dword [esp], 0x4dd6b8
call fcn.004cec60
mov ecx, 0x4df420
mov esi, 0x4dd0e0
mov edi, ebx
call fcn.0042e93c
mov dword [esp], 0x4df420
call fcn.00422510
mov ecx, 0x37
mov dword [ebp - 0x53], 0xd170b65a
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x4dd6c0]
test al, al
jne 0x421685
mov dword [esp], 0x4dd6c0
call fcn.004ceb90
test eax, eax
je 0x421685
mov dword [esp], ebx
mov ecx, 0x4df440
call fcn.0042e834
push ecx
mov dword [esp], 0x4cffa0
call fcn.004013f0
mov dword [esp], 0x4dd6c0
call fcn.004cec60
mov ecx, 0x4df440
call fcn.0042e804
mov dword [esp], 0x4df440
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4216a4
lea eax, [ebp - 0x53]
call eax
cmp dword [ebp - 0x5c], 0
jne 0x42178c
mov dword [ebp - 0x4f], 0xc1eb1542
mov dword [ebp - 0x4b], 0x7c90ec48
mov byte [ebp - 0x47], 0x42
mov al, byte [0x4dd6c8]
test al, al
jne 0x4216ff
mov dword [esp], 0x4dd6c8
call fcn.004ceb90
test eax, eax
je 0x4216ff
mov dword [esp], ebx
mov ecx, 0x4df480
call fcn.0042e96c
push edx
mov dword [esp], 0x4cffac
call fcn.004013f0
mov dword [esp], 0x4dd6c8
call fcn.004cec60
mov ecx, 0x4df480
mov esi, 0x4dd0e0
mov edi, ebx
call fcn.0042e93c
mov dword [esp], 0x4df480
call fcn.00422510
mov ecx, 0x37
mov dword [ebp - 0x53], 0xe580be5e
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x4dd6d0]
test al, al
jne 0x421769
mov dword [esp], 0x4dd6d0
call fcn.004ceb90
test eax, eax
je 0x421769
mov dword [esp], ebx
mov ecx, 0x4df4a0
call fcn.0042e834
push eax
mov dword [esp], 0x4cffb0
call fcn.004013f0
mov dword [esp], 0x4dd6d0
call fcn.004cec60
mov ecx, 0x4df4a0
call fcn.0042e804
mov dword [esp], 0x4df4a0
call sub.msvcrt.dll_getenv
test eax, eax
je 0x421788
lea eax, [ebp - 0x53]
call eax
xor eax, eax
jmp 0x42178f
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret