Function at 0x6b69dbe0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
cmp byte [0x6b83e7b4], 0
jne 0x6b69de8a
mov byte [0x6b83e7b4], 1
mov esi, 0x6b83e7b6
push 0x30
push 0x6b83e7b6
push str.OPENSSL_ia32cap
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
xor ecx, ecx
cmp eax, 0x2f
cmovb ecx, esi
cmp eax, 0x2e
ja 0x6b69dcd4
movzx edx, word [ecx]
xor eax, eax
mov word [esp + 8], dx
cmp dx, 0x7e
sete al
lea edx, [ecx + eax*2]
mov dword [esp], edx
mov ebp, 0xa
cmp word [ecx + eax*2], 0x30
mov dword [esp + 4], ecx
jne 0x6b69dc76
mov edi, dword [esp]
lea esi, [edi + 2]
movzx eax, word [edi + 2]
push eax
call fcn.6b582bd0
add esp, 4
add edi, 4
xor ecx, ecx
cmp eax, 0x78
sete cl
cmovne edi, esi
mov dword [esp], edi
lea ebp, [ecx*8 + 8]
xor ebx, ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx esi, word [eax]
push 4
push esi
call fcn.6b582bb0
add esp, 8
test eax, eax
je 0x6b69dca0
add esi, 0xffffffd0
cmp esi, ebp
jb 0x6b69dcc1
jmp 0x6b69dce9
push 0x10
push esi
call fcn.6b582bb0
add esp, 8
test eax, eax
je 0x6b69dce9
push esi
call fcn.6b582bd0
add esp, 4
mov esi, eax
add esi, 0xffffffa9
cmp esi, ebp
jae 0x6b69dce9
add dword [esp], 2
imul edi, ebp
mov eax, ebx
mul ebp
mov ebx, eax
add ebx, esi
adc edi, edx
jmp 0x6b69dc80
mov eax, dword [0x6b83ad2c]
push eax
call fcn.6b58f2d0
add esp, 4
mov ebp, eax
jmp 0x6b69de7a
cmp word [esp + 8], 0x7e
jne 0x6b69dd20
mov eax, dword [0x6b83ad2c]
push eax
call fcn.6b58f2d0
add esp, 4
not edi
mov ebp, ebx
not ebp
and ebp, eax
and edi, edx
mov edx, edi
and edx, 0xedfff7fd
test ebx, 0x1000000
cmove edx, edi
mov ecx, dword [esp + 4]
jmp 0x6b69dd44
mov ecx, dword [esp + 4]
cmp word [ecx], 0x3a
jne 0x6b69dd40
mov eax, dword [0x6b83ad2c]
push eax
mov esi, ecx
call fcn.6b58f2d0
add esp, 4
mov ebp, eax
mov ecx, esi
jmp 0x6b69dd44
mov ebp, ebx
mov edx, edi
add ecx, 4
movzx eax, word [ecx - 4]
test ax, ax
je 0x6b69dd62
cmp ax, 0x3a
je 0x6b69dd75
add ecx, 2
movzx eax, word [ecx - 4]
test ax, ax
jne 0x6b69dd50
mov eax, dword [0x6b83ad2c]
mov dword [eax + 8], 0
xor edi, edi
jmp 0x6b69de72
movzx eax, word [ecx - 2]
xor ebx, ebx
mov word [esp + 0xe], ax
cmp ax, 0x7e
sete bl
cmp word [ecx + ebx*2 - 2], 0x30
mov dword [esp + 8], edx
jne 0x6b69ddbf
lea esi, [ecx + ebx*2]
movzx eax, word [ecx + ebx*2]
push eax
mov edi, ecx
call fcn.6b582bd0
add esp, 4
xor ecx, ecx
cmp eax, 0x78
sete cl
lea eax, [edi + ebx*2 + 2]
cmovne eax, esi
lea edx, [ecx*8 + 8]
mov ecx, eax
jmp 0x6b69ddc8
lea ecx, [ecx + ebx*2 - 2]
mov edx, 0xa
mov dword [esp], edx
mov dword [esp + 4], ebp
xor ebx, ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, ecx
movzx ebp, word [ecx]
push 4
push ebp
call fcn.6b582bb0
add esp, 8
test eax, eax
je 0x6b69de10
add ebp, 0xffffffd0
mov ecx, esi
mov edx, dword [esp]
cmp ebp, edx
jb 0x6b69de37
jmp 0x6b69de49
push 0x10
push ebp
call fcn.6b582bb0
add esp, 8
test eax, eax
je 0x6b69de49
push ebp
call fcn.6b582bd0
mov edx, dword [esp + 4]
mov ecx, esi
add esp, 4
mov ebp, eax
add ebp, 0xffffffa9
cmp ebp, edx
jae 0x6b69de49
add ecx, 2
imul edi, edx
mov eax, ebx
mul edx
mov ebx, eax
add ebx, ebp
adc edi, edx
jmp 0x6b69dde0
cmp word [esp + 0xe], 0x7e
mov ebp, dword [esp + 4]
mov edx, dword [esp + 8]
jne 0x6b69de6a
not ebx
mov eax, dword [0x6b83ad2c]
and dword [eax + 8], ebx
not edi
and edi, dword [eax + 0xc]
jmp 0x6b69de72
mov eax, dword [0x6b83ad2c]
mov dword [eax + 8], ebx
mov eax, dword [0x6b83ad2c]
mov dword [eax + 0xc], edi
or ebp, 0x400
mov eax, dword [0x6b83ad2c]
mov dword [eax], ebp
mov dword [eax + 4], edx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret