Function at 0x4bc9e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
cmp byte [ecx + 0xc], 0
je 0x4bca1b
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov ebx, dword [ecx + 4]
test ebx, ebx
jne 0x4bcc4d
jmp 0x4bcef1
cmp dword [ecx + 8], 0
je 0x4bcf1a
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4bcf4c
cmp word [eax], 0
mov dword [esp + 4], eax
je 0x4bcc31
mov edx, dword [esp + 4]
jmp 0x4bca6c
cmp word [edi + ebp*2 + 6], 0
je 0x4bcc31
mov edi, edx
mov ebp, 0xfffffffd
mov eax, 0x7ffffffe
xor edx, edx
nop word [eax + eax]
inc eax
cmp word [edi + ebp*2 + 6], 0
mov ecx, edx
lea ebp, [ebp + 1]
lea edx, [edx - 2]
jne 0x4bca80
mov eax, edi
lea esi, [ebp + 2]
sub eax, edx
cmp esi, 1
mov dword [esp], esi
mov edx, eax
je 0x4bca60
cmp dword [esp], 0
je 0x4bcf22
mov eax, 0xfffffffe
xor ebx, ebx
mov esi, 0xfffffffc
sub eax, ecx
nop word [eax + eax]
cmp word [edi + ebx*2 + 2], 0x3d
je 0x4bcae0
inc ebx
add esi, 0xfffffffe
add eax, 0xfffffffe
jne 0x4bcac0
jmp 0x4bca60
cmp ebx, dword [esp]
mov dword [esp + 0x10], edx
jae 0x4bcf22
lea eax, [ebx + 1]
push eax
push edi
lea eax, [esp + 0x20]
push eax
call fcn.004c00c0
add esp, 0xc
lea eax, [ebx + 2]
cmp dword [esp], eax
jb 0x4bcf22
mov eax, ebp
mov ecx, edi
sub eax, ebx
sub ecx, esi
push eax
push ecx
lea eax, [esp + 0x40]
push eax
call fcn.004c00c0
add esp, 0xc
movsd xmm0, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
lea eax, [esp + 0x38]
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x30], xmm1
movzx edx, byte [esp + 0x34]
movsd xmm0, qword [eax - 3]
movsd xmm1, qword [eax + 5]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
cmp dl, 2
movsd qword [esp + 0x5c], xmm1
movsd qword [esp + 0x54], xmm0
mov dword [esp + 0x63], eax
je 0x4bcc31
lea eax, [esp + 0x57]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [ebx + esi]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], 0
movsd qword [esp + 0x74], xmm1
movsd qword [esp + 0x6c], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x14], ecx
mov byte [esp + 8], dl
call fcn.004cc1d0
add esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], eax
movzx eax, byte [esp]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov byte [esp + 0x34], al
movzx eax, byte [esp + 0x56]
mov byte [ecx - 1], al
movzx eax, word [esp + 0x54]
mov word [ecx - 3], ax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004cb090
add esp, 0x10
cmp byte [esp + 0x24], 2
je 0x4bcc21
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bcc21
push 1
push eax
push dword [esp + 0x24]
call fcn.0040dc90
add esp, 0xc
cmp word [edi + ebp*2 + 6], 0
mov edx, dword [esp + 0x10]
jne 0x4bca6c
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov ecx, dword [esp + 0x94]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x4bcef1
mov edx, dword [ecx + 8]
test edx, edx
je 0x4bcef1
mov eax, dword [ecx]
xor edi, edi
jmp 0x4bcc7c
call fcn.0040dc90
add esp, 0xc
mov edx, dword [esp]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
xor eax, eax
dec edx
je 0x4bcef1
test edi, edi
je 0x4bccf0
cmp edi, 2
je 0x4bcf22
movzx ecx, word [ebx + 0x1ea]
mov esi, ebx
cmp ebp, ecx
jb 0x4bccc1
nop word cs:[eax + eax]
mov ecx, dword [esi + 0xb0]
test ecx, ecx
je 0x4bcf22
movzx ebp, word [esi + 0x1e8]
inc eax
mov esi, ecx
cmp bp, word [ecx + 0x1ea]
jae 0x4bcca0
test eax, eax
mov dword [esp], edx
mov dword [esp + 0x10], edi
je 0x4bcd20
mov ebx, dword [esi + ebp*4 + 0x1f0]
mov dword [esp + 0xc], 0
dec eax
je 0x4bcd29
nop
mov ebx, dword [ebx + 0x1ec]
dec eax
jne 0x4bcce0
jmp 0x4bcd29
xor ebp, ebp
mov edi, 1
test eax, eax
je 0x4bcd09
nop dword [eax + eax]
mov ebx, dword [ebx + 0x1ec]
dec eax
jne 0x4bcd00
xor eax, eax
movzx ecx, word [ebx + 0x1ea]
mov esi, ebx
cmp ebp, ecx
jae 0x4bcca0
jmp 0x4bccc1
lea eax, [ebp + 1]
mov ebx, esi
mov dword [esp + 0xc], eax
lea eax, [ebp + ebp*8]
lea eax, [eax + eax*2]
add eax, ebp
shl ebp, 4
cmp byte [esi + ebp + 0xc], 2
lea edx, [esi + eax + 0xb4]
jne 0x4bcd80
push edx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004cb380
add esp, 0xc
cmp byte [esp + 0x34], 2
je 0x4bcc68
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4bcc68
push 1
push eax
push dword [esp + 0x34]
jmp 0x4bcc60
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
mov dword [esp + 8], edx
test eax, eax
mov dword [esp + 4], eax
je 0x4bcdb4
mov dword [esp + 0x14], ecx
js 0x4bcf26
push 1
push eax
call fcn.0040dc80
add esp, 8
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x4bcdb9
jmp 0x4bcf2d
mov eax, 1
mov edi, dword [esp + 4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
push edi
push ecx
push eax
call fcn.004f5b80
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], edi
mov edi, dword [ecx + 0x18]
movzx edx, byte [ecx + 0xc]
mov eax, dword [ecx + 0x14]
test edi, edi
mov dword [esp + 0x14], eax
mov byte [esp + 4], dl
je 0x4bce2e
xor ecx, ecx
cmp edi, 0x40000000
setb al
jae 0x4bcf26
mov cl, al
lea edx, [edi + edi]
add ecx, ecx
test edx, edx
mov dword [esp + 8], edx
js 0x4bcf26
mov dword [esp + 0x68], ecx
je 0x4bce37
push ecx
push dword [esp + 0xc]
call fcn.0040dc80
add esp, 8
test eax, eax
jne 0x4bce41
jmp 0x4bcf35
mov eax, 2
xor ecx, ecx
jmp 0x4bce45
mov eax, ecx
test eax, eax
je 0x4bcf35
mov ecx, dword [esp + 8]
add esi, ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
push ecx
push dword [esp + 0x18]
push eax
call fcn.004f5b80
add esp, 0xc
movzx eax, byte [esp + 4]
mov dword [esp + 0x40], edi
mov byte [esp + 0x34], al
mov edi, dword [esi + 8]
mov ebp, dword [esi + 4]
test edi, edi
je 0x4bce8e
js 0x4bcf26
push 1
push edi
call fcn.0040dc80
add esp, 8
test eax, eax
jne 0x4bce93
jmp 0x4bcf3f
mov eax, 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
push edi
push ebp
push eax
call fcn.004f5b80
add esp, 0xc
mov dword [esp + 0x5c], edi
movzx eax, byte [esi + 0xc]
mov byte [esp + 0x60], al
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004cb090
add esp, 0x10
cmp byte [esp + 0x24], 2
je 0x4bcc68
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bcc68
push 1
push eax
push dword [esp + 0x24]
jmp 0x4bcc60
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x90]
movsd xmm0, qword [esp + 0x48]
mov dword [ecx + 0xc], eax
movsd qword [ecx + 4], xmm0
mov eax, ecx
mov dword [ecx], 1
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [eax], 0
jmp 0x4bcf12
ud2
call fcn.004ccfb0
ud2
push 1
push dword [esp + 8]
jmp 0x4bcf42
push dword [esp + 0x68]
push dword [esp + 0xc]
jmp 0x4bcf42
push 1
push edi
call fcn.005062c0
add esp, 8
ud2
call fcn.004c4870
ud2