Function at 0x635db3a4
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [esp + 0x9c]
mov ebp, dword [esp + 0xa0]
and dword [esp + 0x90], 0x3000
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x635db3e3
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
jbe 0x635db56c
call fcn.635de684
and eax, 1
neg eax
add eax, 3
mov edx, dword [esp + 0x94]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0xfffffffd
mov word [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov edx, dword [esp + 0x98]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov al, byte [esi]
mov ecx, dword [esp + 0x90]
or ch, 2
mov dword [esp + 0x2c], ecx
movsx eax, al
test eax, eax
je 0x635db510
inc esi
cmp eax, 0x25
jne 0x635db51c
mov eax, dword [esp + 0x90]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
mov dl, byte [esi]
mov ebx, esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], ecx
xor edi, edi
xor ecx, ecx
test dl, dl
je 0x635db500
movsx eax, dl
inc ebx
sub edx, 0x20
cmp dl, 0x5a
jbe 0x635db52c
cmp ecx, 4
je 0x635dbb85
cmp eax, 0x39
jg 0x635dbb85
cmp eax, 0x2f
jle 0x635dbb85
test ecx, ecx
je 0x635db9f8
cmp ecx, 2
je 0x635dbaaf
mov edx, dword [esp + 0x28]
test edx, edx
je 0x635db4f7
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
test edx, edx
js 0x635dbab9
mov edx, dword [esp + 0x1c]
lea edx, [edx + edx*4]
lea eax, [eax + edx*2 - 0x30]
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov dl, byte [ebx]
test dl, dl
jne 0x635db490
lea esi, [esi]
mov esi, ebx
xor eax, eax
movsx eax, al
test eax, eax
jne 0x635db457
nop
mov eax, dword [esp + 0x54]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x3c]
call fcn.635da038
mov al, byte [esi]
jmp 0x635db44c
movzx edx, dl
jmp dword [edx*4 + 0x635e84ac]
mov dl, byte [ebx]
mov edi, 2
mov ecx, 4
jmp 0x635db48c
cmp byte [ebx], 0x6c
je 0x635dbb3a
mov edi, 2
or dword [esp + 0x40], 4
mov dl, byte [ebx]
mov ecx, 4
jmp 0x635db48c
mov eax, 2
jmp 0x635db3f0
test ecx, ecx
jne 0x635db58d
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x40], eax
je 0x635dbb70
lea esi, [ebp + 4]
mov edx, dword [ebp]
xor ecx, ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
lea ebp, [esp + 0x3c]
mov dword [esp], ebp
mov eax, 0x78
call fcn.635da530
mov al, byte [ebx]
mov ebp, esi
mov esi, ebx
jmp 0x635db44c
cmp edi, 4
je 0x635dbac9
cmp edi, 1
je 0x635dba99
cmp edi, 2
je 0x635db5dc
cmp edi, 3
je 0x635dbbfc
mov eax, dword [ebp]
mov edx, dword [esp + 0x54]
mov dword [eax], edx
mov al, byte [ebx]
add ebp, 4
mov esi, ebx
jmp 0x635db44c
mov dl, byte [ebx]
mov edi, 3
mov ecx, 4
jmp 0x635db48c
mov dl, byte [ebx]
cmp dl, 0x68
je 0x635dbb28
mov edi, 1
mov ecx, 4
jmp 0x635db48c
mov eax, dword [esp + 0x40]
or eax, 0x20
mov dword [esp + 0x40], eax
test al, 4
je 0x635db91c
lea esi, [ebp + 0xc]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
call fcn.635dad04
mov al, byte [ebx]
mov ebp, esi
mov esi, ebx
jmp 0x635db44c
mov eax, dword [esp + 0x40]
or eax, 0x20
mov dword [esp + 0x40], eax
test al, 4
je 0x635db938
lea esi, [ebp + 0xc]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
call fcn.635dac2c
mov al, byte [ebx]
mov ebp, esi
mov esi, ebx
jmp 0x635db44c
mov eax, dword [esp + 0x40]
or eax, 0x20
mov dword [esp + 0x40], eax
test al, 4
je 0x635db9a0
lea esi, [ebp + 0xc]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
call fcn.635dae84
mov al, byte [ebx]
mov ebp, esi
mov esi, ebx
jmp 0x635db44c
or dword [esp + 0x40], 0x80
cmp edi, 3
je 0x635dbade
cmp edi, 2
je 0x635dba81
lea edx, [ebp + 4]
mov eax, dword [ebp]
mov dword [esp + 0x60], eax
mov ebp, eax
sar ebp, 0x1f
mov dword [esp + 0x64], ebp
cmp edi, 1
je 0x635dbbcb
cmp edi, 4
je 0x635dbc19
mov ebp, edx
lea ecx, [esp + 0x3c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
call fcn.635da2c8
mov al, byte [ebx]
mov esi, ebx
jmp 0x635db44c
mov dl, byte [ebx]
cmp dl, 0x36
je 0x635dbaf4
cmp dl, 0x33
je 0x635dba51
mov edi, 2
mov ecx, 4
jmp 0x635db48c
cmp edi, 3
je 0x635dbb12
cmp edi, 2
je 0x635dba6a
lea edx, [ebp + 4]
mov ecx, dword [ebp]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0
cmp edi, 1
je 0x635dbbb3
cmp edi, 4
je 0x635dbbe4
mov ebp, edx
cmp eax, 0x75
je 0x635db725
lea edx, [esp + 0x3c]
mov dword [esp], edx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
call fcn.635da530
mov al, byte [ebx]
mov esi, ebx
jmp 0x635db44c
mov eax, dword [esp + 0x40]
or eax, 0x20
mov dword [esp + 0x40], eax
test al, 4
je 0x635db954
lea esi, [ebp + 0xc]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
call fcn.635dab7c
mov al, byte [ebx]
mov ebp, esi
mov esi, ebx
jmp 0x635db44c
mov eax, ebp
mov dword [esp + 0x48], 0xffffffff
sub edi, 2
cmp edi, 1
jbe 0x635db96c
add ebp, 4
mov eax, dword [eax]
mov byte [esp + 0x60], al
lea ecx, [esp + 0x3c]
mov edx, 1
lea eax, [esp + 0x60]
call fcn.635da198
mov al, byte [ebx]
mov esi, ebx
jmp 0x635db44c
mov eax, ebp
sub edi, 2
cmp edi, 1
jbe case.0x635db52f.51
add ebp, 4
mov esi, dword [eax]
test esi, esi
je 0x635dbb61
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx - 1]
mov eax, esi
lea ecx, [esp + 0x3c]
call fcn.635da198
mov al, byte [ebx]
mov esi, ebx
jmp 0x635db44c
test ecx, ecx
jne 0x635db4f7
or dword [esp + 0x40], 0x40
mov dl, byte [ebx]
jmp 0x635db48c
test ecx, ecx
jne 0x635db4f7
or dword [esp + 0x40], 0x100
mov dl, byte [ebx]
jmp 0x635db48c
mov eax, dword [esp + 0x28]
test eax, eax
je 0x635db9d1
test ecx, ecx
jne 0x635dba34
lea eax, [ebp + 4]
mov edx, dword [ebp]
mov ebp, dword [esp + 0x28]
mov dword [ebp], edx
test edx, edx
js 0x635dbb9a
mov dl, byte [ebx]
mov ebp, eax
mov dword [esp + 0x28], 0
jmp 0x635db48c
lea edx, [esp + 0x3c]
call fcn.635da038
mov al, byte [ebx]
mov esi, ebx
jmp 0x635db44c
test ecx, ecx
jne 0x635db4f7
or dword [esp + 0x40], 0x800
mov dl, byte [ebx]
jmp 0x635db48c
mov eax, dword [esp + 0x40]
test al, 4
jne 0x635db637
lea esi, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
jmp 0x635db64e
mov eax, dword [esp + 0x40]
test al, 4
jne 0x635db677
lea esi, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
jmp 0x635db68e
mov eax, dword [esp + 0x40]
test al, 4
jne 0x635db7d3
lea esi, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
jmp 0x635db7ea
mov dword [esp + 0x48], 0xffffffff
lea esi, [ebp + 4]
mov eax, dword [ebp]
mov word [esp + 0x6e], ax
lea ecx, [esp + 0x3c]
mov edx, 1
lea eax, [esp + 0x6e]
call fcn.635da08c
mov al, byte [ebx]
mov ebp, esi
mov esi, ebx
jmp 0x635db44c
mov eax, dword [esp + 0x40]
test al, 4
jne 0x635db6b7
lea esi, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
jmp 0x635db6ce
test ecx, ecx
jne case.0x635db52f.1
or dword [esp + 0x40], 0x200
mov dl, byte [ebx]
jmp 0x635db48c
cmp ecx, 1
jbe 0x635dbb45
mov dl, byte [ebx]
mov ecx, 4
jmp 0x635db48c
test ecx, ecx
jne 0x635db4f7
or dword [esp + 0x40], 0x400
mov dl, byte [ebx]
jmp 0x635db48c
mov ecx, 1
jmp 0x635db4cc
lea edi, [ebp + 4]
mov esi, dword [ebp]
test esi, esi
je 0x635dbc32
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x3c]
mov edx, eax
mov eax, esi
call fcn.635da08c
mov al, byte [ebx]
mov ebp, edi
mov esi, ebx
jmp 0x635db44c
cmp ecx, 2
je 0x635db8bc
mov dl, byte [ebx]
mov dword [esp + 0x28], 0
mov ecx, 4
jmp 0x635db48c
cmp byte [ebx + 1], 0x32
je 0x635dbc3c
mov edi, 2
mov ecx, 4
jmp 0x635db490
mov edx, dword [ebp]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0
add ebp, 4
jmp 0x635db79c
mov eax, dword [ebp]
mov dword [esp + 0x60], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x64], ecx
add ebp, 4
jmp 0x635db725
mov eax, dword [ebp]
mov edx, dword [esp + 0x54]
mov word [eax], dx
mov al, byte [ebx]
add ebp, 4
mov esi, ebx
jmp 0x635db44c
mov ecx, 3
jmp 0x635db4cc
sub eax, 0x30
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov dl, byte [ebx]
jmp 0x635db48c
mov eax, dword [ebp]
mov edx, dword [esp + 0x54]
mov byte [eax], dl
mov al, byte [ebx]
add ebp, 4
mov esi, ebx
jmp 0x635db44c
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
add ebp, 8
jmp 0x635db725
cmp byte [ebx + 1], 0x34
jne 0x635dba5b
add ebx, 2
mov dl, byte [ebx]
mov edi, 3
mov ecx, 4
jmp 0x635db48c
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
add ebp, 8
jmp 0x635db79c
inc ebx
mov dl, byte [ebx]
mov edi, 4
mov ecx, 4
jmp 0x635db48c
inc ebx
mov edi, 3
jmp case.0x635db52f.44
mov dword [esp + 0x48], 0
mov dl, byte [ebx]
lea eax, [esp + 0x48]
mov dword [esp + 0x28], eax
mov ecx, 2
jmp 0x635db48c
mov edx, 6
mov eax, str._null_
jmp 0x635db869
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], 8
jmp 0x635db58d
lea edx, [esp + 0x3c]
mov eax, 0x25
call fcn.635da038
mov al, byte [esi]
jmp 0x635db44c
test ecx, ecx
jne 0x635dbc50
or dword [esp + 0x40], 0x400
neg dword [esp + 0x44]
jmp 0x635db8d1
movzx ecx, word [esp + 0x60]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0
mov ebp, edx
jmp 0x635db79c
movsx eax, word [esp + 0x60]
mov dword [esp + 0x60], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x64], ecx
mov ebp, edx
jmp 0x635db725
movzx ecx, byte [esp + 0x60]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0
mov ebp, edx
jmp 0x635db79c
mov eax, dword [ebp]
mov edx, dword [esp + 0x54]
mov dword [eax], edx
mov ecx, edx
sar ecx, 0x1f
mov dword [eax + 4], ecx
mov al, byte [ebx]
add ebp, 4
mov esi, ebx
jmp 0x635db44c
movsx eax, byte [esp + 0x60]
mov dword [esp + 0x60], eax
mov ebp, eax
sar ebp, 0x1f
mov dword [esp + 0x64], ebp
mov ebp, edx
jmp 0x635db725
mov esi, 0x635e8480
jmp 0x635dba12
add ebx, 2
mov dl, byte [ebx]
mov edi, 2
mov ecx, 4
jmp 0x635db48c
mov dword [esp + 0x48], 0xffffffff
mov dl, byte [ebx]
mov ebp, eax
mov dword [esp + 0x28], 0
jmp 0x635db48c