Function at 0x6e22d3b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, 0xfffffffd
push edi
xor edi, edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc4]
and dword [esp + 0xc0], 0x3000
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x50], ebp
mov word [esp + 0x54], 0
mov dword [esp + 0x44], eax
mov eax, 0xffffffff
mov dword [esp + 0x48], eax
mov eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x58], edi
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x5c], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6e22d4fc
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x6e22d4fc
mov edx, 2
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], eax
lea esi, [esi]
lea edi, [edi]
movsx ecx, byte [ebx]
inc ebx
test ecx, ecx
je 0x6e22d56a
lea esi, [esi]
cmp ecx, 0x25
jne 0x6e22d550
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc0]
mov ecx, 0xffffffff
mov dword [esp + 0x7c], ecx
mov edx, 0xffffffff
xor esi, esi
mov dword [esp + 0x78], edx
xor ebp, ebp
lea edi, [esp + 0x78]
mov dword [esp + 0x74], eax
movzx eax, byte [ebx]
test al, al
je 0x6e22d55e
movsx ecx, al
inc ebx
lea eax, [ecx - 0x20]
cmp eax, 0x5a
ja case.0x6e22d4f5.33
jmp dword [eax*4 + 0x6e3138f4]
call fcn.6e230b28
test al, 1
mov edx, 3
je 0x6e22d43d
jmp 0x6e22d438
cmp esi, 3
setbe al
xor edx, edx
cmp ecx, 0x39
setle dl
test edx, eax
je 0x6e22dcfd
cmp ecx, 0x2f
jle 0x6e22dcfd
test esi, esi
jne 0x6e22d580
mov esi, 1
test edi, edi
je 0x6e22d4e2
mov eax, dword [edi]
test eax, eax
js 0x6e22d58c
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
mov dword [edi], eax
jmp 0x6e22d4e2
mov eax, ecx
lea edx, [esp + 0x70]
call fcn.6e22be90
movzx eax, byte [ebx]
movsx ecx, al
inc ebx
test ecx, ecx
jne 0x6e22d4b0
mov eax, dword [esp + 0x88]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 2
jne 0x6e22d53b
mov esi, 3
jmp 0x6e22d53b
lea eax, [ecx - 0x30]
mov dword [edi], eax
jmp 0x6e22d4e2
mov ebp, 2
mov esi, 4
jmp 0x6e22d4e2
mov ebp, 2
lea eax, [ebp - 2]
cmp eax, 1
ja 0x6e22dbb5
mov eax, dword [esp + 0xd0]
lea edi, [esp + 0x70]
add dword [esp + 0xd0], 4
mov esi, dword [eax]
test esi, esi
je 0x6e22de12
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], edi
mov edx, eax
mov eax, esi
call fcn.6e22bf80
jmp 0x6e22d4a0
mov ebp, 2
mov eax, 0xffffffff
mov dword [esp + 0x7c], eax
lea eax, [ebp - 2]
cmp eax, 1
jbe 0x6e22dbeb
mov eax, dword [esp + 0xd0]
mov edx, 1
add dword [esp + 0xd0], 4
mov eax, dword [eax]
mov byte [esp + 0x28], al
lea eax, [esp + 0x70]
mov dword [esp], eax
lea eax, [esp + 0x28]
call fcn.6e22bee0
jmp 0x6e22d4a0
cmp byte [ebx], 0x6c
mov ebp, 2
jne case.0x6e22d4f5.76
inc ebx
mov ebp, 3
or dword [esp + 0x74], 4
mov esi, 4
jmp 0x6e22d4e2
movzx eax, byte [ebx]
mov ebp, 1
cmp al, 0x68
je 0x6e22dc5a
mov esi, 4
jmp 0x6e22d4e5
mov edx, dword [esp + 0x74]
or edx, 0x20
test dl, 4
mov dword [esp + 0x74], edx
jne 0x6e22d965
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 8
fld qword [eax]
fstp xword [esp]
call fcn.6e22cd00
jmp 0x6e22d4a0
mov edx, dword [esp + 0x74]
or edx, 0x20
test dl, 4
mov dword [esp + 0x74], edx
jne 0x6e22db40
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 8
fld qword [eax]
fstp xword [esp]
call fcn.6e22cb30
jmp 0x6e22d4a0
mov edx, dword [esp + 0x74]
or edx, 0x20
test dl, 4
mov dword [esp + 0x74], edx
jne 0x6e22db81
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 8
fld qword [eax]
fstp xword [esp]
call fcn.6e22cc20
jmp 0x6e22d4a0
cmp ebp, 4
je 0x6e22dd31
cmp ebp, 1
je 0x6e22ddab
cmp ebp, 2
je 0x6e22d73c
cmp ebp, 3
je 0x6e22dcaf
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x88]
mov dword [edx], eax
jmp 0x6e22d4a0
mov ebp, 3
mov esi, 4
jmp 0x6e22d4e2
or dword [esp + 0x74], 0x80
cmp ebp, 3
je 0x6e22dd8a
cmp ebp, 2
je 0x6e22dde5
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov eax, dword [eax]
cdq
mov dword [esp + 0x28], eax
cmp ebp, 1
mov dword [esp + 0x2c], edx
je 0x6e22de1c
cmp ebp, 4
je 0x6e22dc84
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x70]
mov edx, dword [esp + 0x2c]
mov dword [esp], ecx
call fcn.6e22c090
jmp 0x6e22d4a0
cmp ebp, 3
je 0x6e22dd69
cmp ebp, 2
je 0x6e22ddcb
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edi, dword [eax]
xor eax, eax
mov dword [esp + 0x2c], eax
cmp ebp, 1
mov dword [esp + 0x28], edi
je 0x6e22de33
cmp ebp, 4
je 0x6e22dc9b
cmp ecx, 0x75
je 0x6e22d7b0
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, ecx
call fcn.6e22c310
jmp 0x6e22d4a0
or dword [esp + 0x74], 0x800
xor ecx, ecx
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edx, dword [eax]
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, 0x78
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.6e22c310
jmp 0x6e22d4a0
mov edx, dword [esp + 0x74]
or edx, 0x20
test dl, 4
mov dword [esp + 0x74], edx
je 0x6e22da46
mov eax, dword [esp + 0xd0]
lea esi, [esp + 0x70]
add dword [esp + 0xd0], 0xc
fld xword [eax]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
fld st(0)
fstp xword [esp + 0x30]
je 0x6e22dd14
mov ecx, dword [esp + 0x38]
mov edi, ecx
and edi, 0x8000
je 0x6e22d8cd
or edx, 0x80
mov dword [esp + 0x74], edx
fxam
wait
fnstsw ax
fstp st(0)
and eax, 0x4500
cmp eax, 0x500
je 0x6e22de51
and ecx, 0x7fff
jne 0x6e22dc21
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebp, edx
or ebp, eax
jne 0x6e22dc21
mov word [esp + 0x38], 0
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call fcn.6e22cea0
jmp 0x6e22d4a0
movzx eax, byte [ebx]
cmp al, 0x36
je 0x6e22dd50
cmp al, 0x33
je 0x6e22dc6d
mov ebp, 2
mov esi, 4
jmp 0x6e22d4e5
mov edx, dword [esp + 0x74]
test dl, 4
je 0x6e22d682
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 0xc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6e22cd00
jmp 0x6e22d4a0
test esi, esi
jne 0x6e22d4e2
or dword [esp + 0x74], 0x400
jmp 0x6e22d4e2
test esi, esi
jne 0x6e22d4e2
or dword [esp + 0x74], 0x100
jmp 0x6e22d4e2
test edi, edi
je 0x6e22dcf1
test esi, esi
sete al
cmp esi, 2
sete dl
or eax, edx
test al, 1
je 0x6e22dcf1
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov eax, dword [eax]
test eax, eax
mov dword [edi], eax
js 0x6e22dcd6
xor edi, edi
jmp 0x6e22d4e2
lea edx, [esp + 0x70]
mov eax, ecx
call fcn.6e22be90
jmp 0x6e22d4a0
test esi, esi
jne 0x6e22d4e2
or dword [esp + 0x74], 0x800
jmp 0x6e22d4e2
test esi, esi
jne 0x6e22d4e2
or dword [esp + 0x74], 0x40
jmp 0x6e22d4e2
mov edx, dword [esp + 0x74]
test dl, 4
jne 0x6e22d885
mov eax, dword [esp + 0xd0]
lea edi, [esp + 0x70]
add dword [esp + 0xd0], 8
fld qword [eax]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
fst qword [esp + 0x30]
je 0x6e22dd2a
movzx eax, word [esp + 0x36]
mov esi, eax
and esi, 0x8000
je 0x6e22da8d
or edx, 0x80
mov dword [esp + 0x74], edx
fstp qword [esp]
call fcn.6e22de80
cmp eax, 0x500
je 0x6e22de3d
movzx eax, word [esp + 0x36]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
shr eax, 4
shld ecx, edx, 8
shl edx, 8
mov dword [esp + 0x34], ecx
mov ecx, eax
mov dword [esp + 0x30], edx
movzx edx, word [esp + 0x36]
mov esi, edx
and esi, 0xfff
mov word [esp + 0x36], si
and ecx, 0x7ff
jne 0x6e22dc31
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebp, edx
or ebp, eax
jne 0x6e22dc31
mov word [esp + 0x38], 0
mov dword [esp + 0x10], edi
jmp 0x6e22d90d
test esi, esi
jne case.0x6e22d4f5.33
or dword [esp + 0x74], 0x200
jmp 0x6e22d4e2
cmp esi, 1
ja 0x6e22d59b
xor eax, eax
lea edi, [esp + 0x7c]
mov esi, 2
mov dword [esp + 0x7c], eax
jmp 0x6e22d4e2
mov edx, dword [esp + 0x74]
test dl, 4
je 0x6e22d6bc
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 0xc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6e22cb30
jmp 0x6e22d4a0
mov edx, dword [esp + 0x74]
test dl, 4
je 0x6e22d6f6
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 0xc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6e22cc20
jmp 0x6e22d4a0
mov eax, dword [esp + 0xd0]
lea edi, [esp + 0x70]
add dword [esp + 0xd0], 4
mov esi, dword [eax]
test esi, esi
je 0x6e22de08
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], edi
mov edx, eax
mov eax, esi
call fcn.6e22bee0
jmp 0x6e22d4a0
mov eax, dword [esp + 0xd0]
xor esi, esi
add dword [esp + 0xd0], 4
movzx edx, word [eax]
lea eax, [esp + 0x70]
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edx
mov edx, 1
mov dword [esp + 0x2c], esi
call fcn.6e22bf80
jmp 0x6e22d4a0
lea eax, [ecx - 0x3fff]
mov word [esp + 0x38], ax
jmp 0x6e22d909
lea eax, [ecx - 0x3ff]
cmp ax, 0xff83
mov word [esp + 0x38], ax
jl 0x6e22daf8
mov dword [esp + 0x10], edi
lea eax, [esi + 0x1000]
mov word [esp + 0x36], ax
jmp 0x6e22d90d
inc ebx
mov ebp, 4
movzx eax, byte [ebx]
mov esi, 4
jmp 0x6e22d4e5
cmp byte [ebx + 1], 0x32
jne 0x6e22d949
mov ebp, 2
add ebx, 2
movzx eax, byte [ebx]
jmp 0x6e22dc63
movsx eax, byte [esp + 0x28]
mov edi, eax
sar edi, 0x1f
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jmp 0x6e22d7b0
movzx eax, byte [esp + 0x28]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x6e22d808
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x88]
mov dword [edx], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [edx + 4], ecx
jmp 0x6e22d4a0
test esi, esi
jne 0x6e22de65
or dword [esp + 0x74], 0x400
xor edi, edi
neg dword [esp + 0x78]
jmp 0x6e22d4e2
mov esi, 4
xor edi, edi
jmp 0x6e22d4e2
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x70]
mov eax, 0x25
call fcn.6e22be90
jmp 0x6e22d4a0
fstp st(0)
mov dword [esp], esi
mov edx, 0x6e3138d7
xor eax, eax
call fcn.6e22c660
jmp 0x6e22d4a0
fstp st(0)
mov dword [esp], edi
jmp 0x6e22dd19
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x88]
mov byte [edx], al
jmp 0x6e22d4a0
cmp byte [ebx + 1], 0x34
mov ebp, 3
je 0x6e22dc7c
mov ebp, 2
jmp 0x6e22d94e
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 8
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x6e22d808
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 8
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x6e22d7b0
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x88]
mov word [edx], ax
jmp 0x6e22d4a0
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov edx, dword [eax]
mov dword [esp + 0x28], edx
jmp 0x6e22dca4
mov eax, dword [esp + 0xd0]
add dword [esp + 0xd0], 4
mov eax, dword [eax]
mov ebp, eax
mov dword [esp + 0x28], eax
sar ebp, 0x1f
mov dword [esp + 0x2c], ebp
jmp 0x6e22d7b0
mov esi, 0x6e3138db
jmp 0x6e22dbd2
mov esi, str._null_
jmp 0x6e22d5d3
movsx eax, word [esp + 0x28]
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jmp 0x6e22d7b0
movzx eax, word [esp + 0x28]
jmp 0x6e22dca0
mov dword [esp], edi
mov edx, 0x6e3138f0
mov eax, esi
call fcn.6e22c660
jmp 0x6e22d4a0
mov dword [esp], esi
mov edx, 0x6e3138f0
mov eax, edi
call fcn.6e22c660
jmp 0x6e22d4a0
mov eax, 0xffffffff
xor edi, edi
mov dword [esp + 0x7c], eax
jmp 0x6e22d4e2