Function at 0x6dc25025
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 8], 0
je 0x6dc2503b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test al, al
jne 0x6dc2504a
mov dword [esp], str.DISPLAY
call sub.msvcrt.dll_getenv
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x6dc2505a
mov eax, 0
jmp 0x6dc25231
mov dword [esp + 4], 0x2f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strrchr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6dc250e4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x6dc250d9
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x6dc250b1
mov eax, 0
jmp 0x6dc25231
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x6dc250f3
cmp dword [ebp + 0x10], 0
je 0x6dc250f3
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [esp + 4], 0x3a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strrchr
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x6dc25114
jmp 0x6dc25210
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x14], eax
add dword [ebp - 0x18], 1
mov dword [esp + 8], 0xa
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jne 0x6dc2514f
jmp 0x6dc25210
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test al, al
jne 0x6dc25162
mov dword [ebp - 0xc], 0
jmp 0x6dc251ab
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
cmp al, 0x2e
je 0x6dc25171
jmp 0x6dc25210
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp edx, eax
je 0x6dc25210
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test al, al
jne 0x6dc25210
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x6dc251cb
jmp 0x6dc25210
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
cmp dword [ebp + 0x18], 0
je 0x6dc25209
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, 1
jmp 0x6dc25231
cmp dword [ebp + 0x10], 0
je 0x6dc2522c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0
leave
ret