Function at 0x4ccd10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x676240
call esi
sub esp, 0xc
test eax, eax
jne 0x4ccd68
call fcn.004de7f0
test eax, eax
jne 0x4cce58
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ebx, eax
cmp eax, 0xc435
ja 0x4cce80
cmp eax, 0xc42b
jbe 0x4cce68
lea eax, [eax - 0xc42c]
mov edx, 0x2a7
bt edx, eax
setb al
xor eax, 1
movzx eax, al
shl eax, 3
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], 0
mov edx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [ebp - 0x20], edx
call edx
mov edx, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
mov edi, eax
jle 0x4cce58
lea eax, [eax + eax + 8]
cmp eax, 0x400
ja 0x4ccf50
add eax, 0x1b
shr eax, 4
shl eax, 4
call fcn.00651990
sub esp, eax
lea eax, [esp + 0x2f]
and eax, 0xfffffff0
mov dword [eax], 0xcccc
mov dword [ebp - 0x24], eax
add eax, 8
mov dword [ebp - 0x20], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x20]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edx
sub esp, 0x18
test eax, eax
jg 0x4ccea8
cmp dword [edi - 8], 0xdddd
je 0x4ccfb0
lea esi, [esi]
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp ebx, 0x2a
setne al
shl eax, 3
mov dword [ebp - 0x1c], eax
jmp 0x4ccda3
cmp eax, 0xdeb3
ja 0x4ccf80
xor eax, eax
cmp ebx, 0xdea9
setbe al
shl eax, 3
mov dword [ebp - 0x1c], eax
jmp 0x4ccda3
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call esi
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4ccfa0
lea eax, [eax + eax + 8]
cmp eax, 0x400
ja 0x4ccfe0
add eax, 0x1b
shr eax, 4
shl eax, 4
call fcn.00651990
sub esp, eax
lea eax, [esp + 0x2f]
and eax, 0xfffffff0
mov dword [eax], 0xcccc
mov edx, eax
lea edi, [eax + 8]
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
cmp eax, ebx
jb 0x4cd000
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0xdddd
je 0x4ccfc8
xor ebx, ebx
cmp dword [edi - 8], 0xdddd
jne 0x4ccd59
mov dword [esp], edx
call fcn.0065f328
jmp 0x4ccd59
mov dword [ebp - 0x28], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4cce58
mov dword [eax], 0xdddd
add eax, 8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x4cce18
xor eax, eax
cmp ebx, 0xfde8
setne al
shl eax, 3
mov dword [ebp - 0x1c], eax
jmp 0x4ccda3
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0xdddd
jne 0x4cce58
mov eax, dword [ebp - 0x24]
xor ebx, ebx
mov dword [esp], eax
call fcn.0065f328
jmp 0x4cce5a
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.0065f328
mov edx, dword [ebp - 0x1c]
jmp 0x4ccf2f
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, eax
test eax, eax
je 0x4ccfa0
mov dword [eax], 0xdddd
lea edi, [eax + 8]
jmp 0x4ccefe
mov eax, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x28], eax
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x20
test eax, eax
mov esi, eax
jg 0x4cd080
xor ebx, ebx
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0xdddd
jne 0x4ccf31
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call fcn.0065f328
mov edx, dword [ebp - 0x1c]
jmp 0x4ccf31
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], 0x46
mov dword [esp + 4], str..._crypto_getenv.c
mov dword [esp], eax
call fcn.004ce330
mov edx, dword [ebp - 0x1c]
test eax, eax
mov ebx, eax
je 0x4cd054
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov eax, dword [ebp - 0x28]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x20
test eax, eax
jne 0x4cd056
mov dword [esp + 8], 0x4c
mov dword [esp + 4], str..._crypto_getenv.c
mov dword [esp], ebx
call fcn.004ce2f0
mov edx, dword [ebp - 0x1c]
jmp 0x4cd054