Function at 0x4dd9c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4f7320
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x454]
push eax
call fcn.004f5680
add esp, 4
cmp dword [ebp - 0x454], 1
jne 0x4dda22
lea ecx, [ebp - 0x454]
call fcn.004d9310
jmp 0x4ddb39
mov ecx, dword [ebp - 0x450]
test ecx, ecx
je 0x4ddb39
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
push 0x400
push 0
lea eax, [ebp - 0x454]
push eax
call fcn.0054c590
add esp, 0xc
mov eax, dword [0x5f5ba8]
mov ebx, 0x200
xor esi, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0
cmp ebx, 0x201
jae 0x4ddaa2
jmp 0x4ddae0
cmp edi, ebx
mov ebx, edi
jb 0x4ddb55
cmp ebx, 0x201
jb 0x4ddae0
mov ecx, dword [ebp - 0x34]
mov eax, ebx
sub eax, esi
sub ecx, esi
cmp ecx, eax
jae 0x4ddad0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x38]
mov edx, esi
push eax
call fcn.0056fb00
add esp, 4
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
mov esi, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
jmp 0x4ddaed
lea edi, [ebp - 0x454]
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x4ddb13
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ddb8e
cmp edi, ebx
jne 0x4dda90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4dda90
add ebx, ebx
cmp ebx, 0x201
jb 0x4ddae0
jmp 0x4ddaa2
mov dword [edi], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 2
cmp edi, eax
ja 0x4ddc4d
lea eax, [ebp - 0x54]
push edi
push dword [ebp - 0x20]
push eax
call fcn.004e4fb0
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
xor ebx, ebx
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x4ddba2
jmp 0x4ddbca
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
test ecx, ecx
je 0x4ddbca
cmp dword [ebp - 0x24], 0
je 0x4ddbca
add ecx, ecx
je 0x4ddbca
push 2
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
mov esi, edx
call fcn.0043c2a0
mov edx, esi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add esp, 0xc
test bl, bl
je 0x4ddc1f
cmp dl, 3
mov dword [edi], 0
jne 0x4ddc27
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], 1
push edx
mov dword [ebp - 0x20], eax
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ddc0d
push dword [eax + 8]
push ecx
push dword [edx]
mov esi, edx
call fcn.0043c2a0
mov edx, esi
add esp, 0xc
push 4
push 0xc
push edx
call fcn.0043c2a0
add esp, 0xc
mov edi, dword [ebp + 8]
jmp 0x4ddc27
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4ddb3f
add eax, eax
je 0x4ddb3f
push 2
push eax
push dword [ebp - 0x2c]
call fcn.0043c2a0
add esp, 0xc
jmp 0x4ddb3f
push 0x5f79e4
push eax
push edi
call fcn.005709d0
add esp, 0xc
ud2