Function at 0x61ed23c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
xor esi, esi
xor ebx, ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xac]
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], 0x61edc641
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xfffffffd
mov word [esp + 0x68], bx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], si
mov dword [esp + 0x74], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa0]
and eax, 0x6000
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x78], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x61ed245c
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x61ed2469
call fcn.61ed79b0
and eax, 1
neg eax
add eax, 3
mov dword [esp + 0x7c], eax
movzx ecx, byte [ebp]
movsx eax, cl
lea edi, [ebp + 1]
test eax, eax
je 0x61ed2510
cmp eax, 0x25
jne 0x61ed2520
mov eax, dword [esp + 0x24]
movzx ecx, byte [ebp + 1]
xor edx, edx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov esi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x5c]
test cl, cl
mov dword [esp + 0x20], eax
je 0x61ed24f7
lea eax, [ecx - 0x20]
lea ebp, [esi + 1]
movsx ebx, cl
cmp al, 0x5a
ja case.0x61ed24d0.1
movzx eax, al
jmp dword [eax*4 + 0x61edc658]
movzx ecx, byte [esi + 1]
mov dword [esp + 0x1c], 0
mov edx, 4
mov esi, ebp
test cl, cl
jne 0x61ed24bc
movsx eax, cl
mov ebp, esi
test eax, eax
lea edi, [ebp + 1]
jne 0x61ed247f
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x74]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x54]
call fcn.61ed0c70
movzx ecx, byte [ebp + 1]
mov ebp, edi
jmp 0x61ed2471
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xb0]
sub edx, 2
cmp edx, 1
jbe case.0x61ed24d0.51
mov ebx, dword [eax]
add dword [esp + 0xb0], 4
test ebx, ebx
je 0x61ed2647
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x54]
mov eax, ebx
call fcn.61ed0df0
movzx ecx, byte [ebp]
jmp 0x61ed2471
test edx, edx
jne 0x61ed2592
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x58], eax
je 0x61ed2dd6
mov eax, dword [esp + 0xb0]
xor ecx, ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edx, dword [eax]
lea ebx, [eax + 4]
lea eax, [esp + 0x54]
mov dword [esp], eax
mov eax, 0x78
mov dword [esp + 0x40], edx
call fcn.61ed1ab0
mov dword [esp + 0xb0], ebx
jmp 0x61ed2572
cmp dword [esp + 0x1c], 5
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x74]
mov eax, dword [eax]
je 0x61ed2ce1
cmp dword [esp + 0x1c], 1
je 0x61ed2d9c
cmp dword [esp + 0x1c], 2
je 0x61ed2e19
cmp dword [esp + 0x1c], 3
mov dword [eax], edx
je 0x61ed2e88
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x61ed2572
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov ebx, eax
jne 0x61ed255d
mov edx, 6
mov ebx, 0x61edc63a
jmp 0x61ed2567
movzx ecx, byte [esi + 1]
cmp cl, 0x6c
je 0x61ed2c65
mov dword [esp + 0x1c], 2
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
movzx ecx, byte [esi + 1]
mov dword [esp + 0x1c], 3
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
movzx ecx, byte [esi + 1]
cmp cl, 0x68
je 0x61ed2cc6
mov dword [esp + 0x1c], 1
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x61ed2923
fld xword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 0xc
fstp xword [esp]
call fcn.61ed1920
jmp 0x61ed2572
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x61ed2953
fld xword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 0xc
fstp xword [esp]
call fcn.61ed13c0
jmp 0x61ed2572
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x61ed2983
fld xword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 0xc
fstp xword [esp]
call fcn.61ed1870
jmp 0x61ed2572
cmp dword [esp + 0x1c], 3
mov eax, dword [esp + 0xb0]
je 0x61ed2ca3
cmp dword [esp + 0x1c], 2
je 0x61ed2d7a
xor edx, edx
cmp dword [esp + 0x1c], 1
lea ecx, [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
je 0x61ed2e31
cmp dword [esp + 0x1c], 5
mov dword [esp + 0xb0], ecx
je 0x61ed2e61
cmp ebx, 0x75
je 0x61ed28c0
lea edi, [esp + 0x54]
mov ecx, edx
mov edx, eax
mov eax, ebx
mov dword [esp], edi
call fcn.61ed1ab0
jmp 0x61ed2572
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x60], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x61ed29a8
mov eax, dword [eax]
lea ecx, [esp + 0x54]
mov edx, 1
add dword [esp + 0xb0], 4
mov byte [esp + 0x40], al
lea eax, [esp + 0x40]
call fcn.61ed0df0
jmp 0x61ed2572
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x61ed29f3
fld xword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 0xc
fstp xword [esp]
call fcn.61ed1e50
jmp 0x61ed2572
or dword [esp + 0x58], 0x80
cmp dword [esp + 0x1c], 3
mov eax, dword [esp + 0xb0]
je 0x61ed2c80
cmp dword [esp + 0x1c], 2
je 0x61ed2db5
lea ecx, [eax + 4]
mov eax, dword [eax]
cdq
cmp dword [esp + 0x1c], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
je 0x61ed2dff
cmp dword [esp + 0x1c], 5
mov dword [esp + 0xb0], ecx
je 0x61ed2e75
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x48], ecx
sar ecx, 0x1f
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x54]
call fcn.61ed14a0
jmp 0x61ed2572
movzx ecx, byte [esi + 1]
or dword [esp + 0x58], 4
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
movzx ecx, byte [esi + 1]
cmp cl, 0x36
je 0x61ed2cf9
cmp cl, 0x33
je 0x61ed2d50
mov dword [esp + 0x1c], 0
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x61ed26db
fld qword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 8
fstp xword [esp]
call fcn.61ed1920
jmp 0x61ed2572
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x61ed271a
fld qword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 8
fstp xword [esp]
call fcn.61ed13c0
jmp 0x61ed2572
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x61ed274f
fld qword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 8
fstp xword [esp]
call fcn.61ed1870
jmp 0x61ed2572
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x54]
mov edx, 1
lea ebx, [eax + 4]
mov eax, dword [eax]
mov word [esp + 0x40], ax
lea eax, [esp + 0x40]
call fcn.61ed0cd0
mov dword [esp + 0xb0], ebx
jmp 0x61ed2572
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x61ed283e
fld qword [edx]
lea eax, [esp + 0x54]
add dword [esp + 0xb0], 8
fstp xword [esp]
call fcn.61ed1e50
jmp 0x61ed2572
test edx, edx
jne 0x61ed2bd0
movzx ecx, byte [esi + 1]
or dword [esp + 0x58], 0x200
mov esi, ebp
jmp 0x61ed24f3
cmp edx, 1
jbe 0x61ed2d1c
movzx ecx, byte [esi + 1]
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
test edx, edx
jne 0x61ed2acc
movzx ecx, byte [esi + 1]
or dword [esp + 0x58], 0x400
mov esi, ebp
jmp 0x61ed24f3
test edx, edx
jne 0x61ed2acc
movzx ecx, byte [esi + 1]
or dword [esp + 0x58], 0x100
mov esi, ebp
jmp 0x61ed24f3
test edx, edx
jne 0x61ed2acc
movzx ecx, byte [esi + 1]
or dword [esp + 0x58], 0x800
mov esi, ebp
jmp 0x61ed24f3
test edx, edx
jne 0x61ed2acc
movzx ecx, byte [esi + 1]
or dword [esp + 0x58], 0x40
mov esi, ebp
jmp 0x61ed24f3
test edx, edx
je 0x61ed2c08
movzx ecx, byte [esi + 1]
mov esi, ebp
jmp 0x61ed24f3
lea edx, [esp + 0x54]
mov eax, ebx
call fcn.61ed0c70
jmp 0x61ed2572
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x61ed2a39
test edx, 0xfffffffd
jne 0x61ed2bf0
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
lea ebx, [eax + 4]
mov eax, dword [eax]
test eax, eax
mov dword [ecx], eax
js 0x61ed2e4c
movzx ecx, byte [esi + 1]
mov dword [esp + 0xb0], ebx
mov esi, ebp
mov dword [esp + 0x20], 0
jmp 0x61ed24f3
sub ecx, 0x30
cmp cl, 9
ja 0x61ed2dea
cmp edx, 3
ja 0x61ed2dea
test edx, edx
jne 0x61ed2bd9
mov edx, 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x61ed2acc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
js 0x61ed2d3c
lea eax, [eax + eax*4]
movzx ecx, byte [esi + 1]
lea eax, [ebx + eax*2 - 0x30]
mov ebx, dword [esp + 0x20]
mov dword [ebx], eax
jmp 0x61ed2ad0
mov eax, dword [esp + 0xb0]
mov ebx, dword [eax]
lea esi, [eax + 4]
mov eax, 0x61edc62c
test ebx, ebx
cmove ebx, eax
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x54]
mov edx, eax
mov eax, ebx
call fcn.61ed0cd0
mov dword [esp + 0xb0], esi
jmp 0x61ed2572
cmp edx, 3
ja 0x61ed2dea
cmp edx, 2
mov eax, 3
cmove edx, eax
jmp 0x61ed2b62
movzx ecx, byte [esi + 1]
mov dword [esp + 0x20], 0
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
lea ebx, [esp + 0x40]
mov dword [esp + 0x2c], edx
or dword [esp + 0x58], 0x1000
mov dword [esp + 0x40], 0
call sub.msvcrt.dll_localeconv
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
lea eax, [esp + 0x3e]
mov dword [esp], eax
call fcn.61ed0460
test eax, eax
mov edx, dword [esp + 0x2c]
jle 0x61ed2c56
movzx ecx, word [esp + 0x3e]
mov word [esp + 0x70], cx
movzx ecx, byte [esi + 1]
mov dword [esp + 0x6c], eax
mov esi, ebp
jmp 0x61ed24f3
lea ebp, [esi + 2]
movzx ecx, byte [esi + 2]
mov dword [esp + 0x1c], 3
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
mov ebx, dword [esp + 0xb0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add ebx, 8
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0xb0], ebx
jmp 0x61ed28b0
mov edi, dword [esp + 0xb0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add edi, 8
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0xb0], edi
jmp 0x61ed27b9
lea ebp, [esi + 2]
movzx ecx, byte [esi + 2]
mov dword [esp + 0x1c], 5
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
mov byte [eax], dl
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x61ed2572
cmp byte [esi + 2], 0x34
je 0x61ed2ea6
mov ecx, 0x36
mov dword [esp + 0x1c], 0
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
lea eax, [esp + 0x60]
movzx ecx, byte [esi + 1]
mov dword [esp + 0x60], 0
mov edx, 2
mov esi, ebp
mov dword [esp + 0x20], eax
jmp 0x61ed24f3
mov eax, dword [esp + 0x20]
sub ebx, 0x30
movzx ecx, byte [esi + 1]
mov esi, ebp
mov dword [eax], ebx
jmp 0x61ed24f3
cmp byte [esi + 2], 0x32
mov ecx, 0x33
jne 0x61ed28fb
lea ebp, [esi + 3]
movzx ecx, byte [esi + 3]
mov dword [esp + 0x1c], 2
mov edx, 4
mov esi, ebp
jmp 0x61ed24f3
mov edi, dword [esp + 0xb0]
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 0x44], edx
add edi, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0xb0], edi
jmp 0x61ed27b9
mov word [eax], dx
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x61ed2572
mov eax, dword [eax]
or byte [edi + 0x5e], bl
jge 0x61ed2df8
lodsb al, byte [esi]
scasb al, byte es:[edi]
jne 0x61ed2df8
test al, al
jne 0x61ed2dec
xor eax, eax
jmp 0x61ed2e01
mov eax, 1
jl 0x61ed2e01
neg eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
in al, dx
clc
mov eax, dword [esp - 4]
add eax, 2
mov dword [esp - 4], eax
mov eax, dword [esp - 8]
sub esp, 4
ret
rol byte [eax + edx*2], 0x8b
inc esp
and al, 4
ret 8
inc edx
add al, 0xc3
lea eax, [edx + 4]
push ebx
mov ecx, eax
mov bl, byte [edx + 2]
test bl, bl
je 0x61ed2e73
xor byte [ecx], bl
mov bl, byte [ecx]
not bl
test bl, bl
mov byte [ecx], bl
je 0x61ed2e80
inc ecx
jmp 0x61ed2e6a
mov byte [edx + 3], 1
pop ebx
ret
and al, 8
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x61ed2ec1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x61ed2ea8
mov ecx, dword [eax + 0x10]
dec eax
adc byte [ebx + 0x54390c50], cl
and al, 0xc
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x61ed2eb9
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x61ed2ec3
inc edi
add eax, 0x28
cmp edi, esi
jb 0x61ed2e9e
xor eax, eax
pop edi
pop esi
ret