Function at 0x49ddd0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
and dword [esp + 0x90], 0x3000
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x49df50
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
ja 0x49df50
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x90]
or ch, 2
mov dword [esp + 0x4c], 0xfffffffd
mov word [esp + 0x50], 0
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
movzx eax, byte [edi]
mov dword [esp + 0x2c], ecx
movsx eax, al
test eax, eax
je 0x49df40
add edi, 1
cmp eax, 0x25
jne 0x49df62
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x44]
mov ebx, edi
mov dword [esp + 0x48], 0xffffffff
xor ebp, ebp
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], eax
movzx edx, byte [edi]
mov dword [esp + 0x28], ecx
xor ecx, ecx
test dl, dl
je 0x49df30
movsx eax, dl
sub edx, 0x20
add ebx, 1
cmp dl, 0x5a
jbe 0x49df73
cmp eax, 0x39
jg 0x49e5aa
cmp ecx, 3
ja 0x49e5aa
cmp eax, 0x2f
jle 0x49e5aa
test ecx, ecx
je 0x49e450
cmp ecx, 2
mov edx, 3
cmove ecx, edx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x49df27
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
test edx, edx
mov dword [esp + 0x1c], edx
js 0x49e509
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
movzx edx, byte [ebx]
test dl, dl
jne 0x49debc
nop
xor eax, eax
mov edi, ebx
movsx eax, al
test eax, eax
jne 0x49de80
nop
mov eax, dword [esp + 0x54]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004a1440
and eax, 1
neg eax
add eax, 3
jmp 0x49de18
lea edx, [esp + 0x3c]
call fcn.0049ca00
movzx eax, byte [edi]
jmp 0x49de75
movzx edx, dl
jmp dword [edx*4 + 0x4c136c]
movzx edx, byte [ebx]
mov ebp, 2
mov ecx, 4
jmp 0x49deb8
cmp byte [ebx], 0x6c
mov ebp, 2
jne case.0x49df76.44
add ebx, 1
mov bp, 3
or dword [esp + 0x40], 4
mov ecx, 4
movzx edx, byte [ebx]
jmp 0x49deb8
sub ebp, 2
mov eax, esi
cmp ebp, 1
jbe case.0x49df76.51
mov edi, dword [eax]
add esi, 4
mov edx, 6
mov eax, str._null_
test edi, edi
je 0x49dfe2
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, edi
lea ecx, [esp + 0x3c]
mov edi, ebx
call fcn.0049cb70
movzx eax, byte [ebx]
jmp 0x49de75
test ecx, ecx
jne 0x49e00a
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x40], ecx
je 0x49e595
mov edx, dword [esi]
lea eax, [esp + 0x3c]
xor ecx, ecx
lea edi, [esi + 4]
mov dword [esp], eax
mov eax, 0x78
mov esi, edi
mov dword [esp + 0x64], ecx
mov edi, ebx
mov dword [esp + 0x60], edx
call fcn.0049cf10
movzx eax, byte [ebx]
jmp 0x49de75
cmp ebp, 4
je 0x49e52f
cmp ebp, 1
je 0x49e4f3
cmp ebp, 2
je 0x49e056
cmp ebp, 3
je 0x49e61b
mov eax, dword [esi]
mov edi, ebx
add esi, 4
mov edx, dword [esp + 0x54]
mov dword [eax], edx
movzx eax, byte [ebx]
jmp 0x49de75
movzx edx, byte [ebx]
mov ebp, 3
mov ecx, 4
jmp 0x49deb8
movzx edx, byte [ebx]
mov ebp, 1
mov ecx, 4
cmp dl, 0x68
jne 0x49deb8
add ebx, 1
mov bp, 4
movzx edx, byte [ebx]
jmp 0x49deb8
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x49e440
mov eax, dword [esi]
lea edi, [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
mov esi, edi
call fcn.0049d730
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x49de75
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x49e391
mov eax, dword [esi]
lea edi, [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
mov esi, edi
call fcn.0049d650
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x49de75
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x49e3ac
mov eax, dword [esi]
lea edi, [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
mov esi, edi
call fcn.0049d590
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x49de75
sub ebp, 2
mov eax, esi
cmp ebp, 1
mov dword [esp + 0x48], 0xffffffff
jbe 0x49e3c8
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
mov edx, 1
add esi, 4
mov edi, ebx
mov byte [esp + 0x60], al
lea eax, [esp + 0x60]
call fcn.0049cb70
movzx eax, byte [ebx]
jmp 0x49de75
or dword [esp + 0x40], 0x80
cmp ebp, 3
je 0x49e51a
cmp ebp, 2
je 0x49e4dc
mov eax, dword [esi]
lea edx, [esi + 4]
mov ecx, eax
sar ecx, 0x1f
cmp ebp, 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
je 0x49e5c0
cmp ebp, 4
mov esi, edx
je 0x49e638
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x3c]
mov edi, ebx
mov edx, dword [esp + 0x64]
call fcn.0049ccc0
movzx eax, byte [ebx]
jmp 0x49de75
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x49e3fc
mov eax, dword [esi]
lea edi, [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [esp + 0x3c]
mov esi, edi
call fcn.0049d8c0
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x49de75
cmp ebp, 3
je 0x49e563
cmp ebp, 2
je 0x49e4c6
mov ecx, dword [esi]
cmp ebp, 1
lea edx, [esi + 4]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], ecx
je 0x49e5d9
cmp ebp, 4
mov esi, edx
je 0x49e64f
cmp eax, 0x75
je 0x49e1e0
lea edx, [esp + 0x3c]
mov ecx, dword [esp + 0x64]
mov edi, ebx
mov dword [esp], edx
mov edx, dword [esp + 0x60]
call fcn.0049cf10
movzx eax, byte [ebx]
jmp 0x49de75
test ecx, ecx
jne case.0x49df76.1
or dword [esp + 0x40], 0x200
movzx edx, byte [ebx]
jmp 0x49deb8
cmp ecx, 1
jbe 0x49e578
movzx edx, byte [ebx]
mov ecx, 4
jmp 0x49deb8
test ecx, ecx
jne 0x49df27
or dword [esp + 0x40], 0x400
movzx edx, byte [ebx]
jmp 0x49deb8
test ecx, ecx
jne 0x49df27
or dword [esp + 0x40], 0x100
movzx edx, byte [ebx]
jmp 0x49deb8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49e2c1
test ecx, ecx
sete dl
cmp ecx, 2
jne 0x49e490
lea eax, [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
test esi, esi
mov dword [eax], esi
js 0x49e5f1
movzx edx, byte [ebx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
jmp 0x49deb8
lea edx, [esp + 0x3c]
mov edi, ebx
call fcn.0049ca00
movzx eax, byte [ebx]
jmp 0x49de75
test ecx, ecx
jne 0x49df27
or dword [esp + 0x40], 0x800
movzx edx, byte [ebx]
jmp 0x49deb8
test ecx, ecx
jne 0x49df27
or dword [esp + 0x40], 0x40
movzx edx, byte [ebx]
jmp 0x49deb8
mov eax, dword [esp + 0x40]
test al, 4
jne 0x49e0f8
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x49e10e
mov eax, dword [esp + 0x40]
test al, 4
jne 0x49e136
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x49e14c
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esi]
lea edi, [esi + 4]
mov edx, 1
lea ecx, [esp + 0x3c]
mov esi, edi
mov edi, ebx
mov word [esp + 0x6e], ax
lea eax, [esp + 0x6e]
call fcn.0049ca60
movzx eax, byte [ebx]
jmp 0x49de75
mov eax, dword [esp + 0x40]
test al, 4
jne 0x49e213
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x49e229
movzx edx, byte [ebx]
cmp dl, 0x36
je 0x49e544
cmp dl, 0x33
je 0x49e4ad
mov ebp, 2
mov ecx, 4
jmp 0x49deb8
mov eax, dword [esp + 0x40]
test al, 4
jne 0x49e0ba
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x49e0d0
mov ecx, 1
jmp 0x49defc
mov eax, dword [esi]
lea edi, [esi + 4]
mov esi, 0x4c1340
test eax, eax
cmovne esi, eax
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x3c]
mov edx, eax
mov eax, esi
call fcn.0049ca60
mov esi, edi
movzx eax, byte [ebx]
mov edi, ebx
jmp 0x49de75
test dl, dl
jne 0x49e316
movzx edx, byte [ebx]
mov ecx, 4
mov dword [esp + 0x28], 0
jmp 0x49deb8
cmp byte [ebx + 1], 0x32
je 0x49e665
mov ebp, 2
mov ecx, 4
jmp 0x49debc
mov edx, dword [esi]
add esi, 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], edx
jmp 0x49e277
mov eax, dword [esi]
add esi, 4
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
jmp 0x49e1e0
mov eax, dword [esi]
mov edi, ebx
add esi, 4
mov edx, dword [esp + 0x54]
mov word [eax], dx
movzx eax, byte [ebx]
jmp 0x49de75
mov edx, dword [esp + 0x28]
sub eax, 0x30
mov dword [edx], eax
movzx edx, byte [ebx]
jmp 0x49deb8
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x49e1e0
mov eax, dword [esi]
mov edi, ebx
add esi, 4
mov edx, dword [esp + 0x54]
mov byte [eax], dl
movzx eax, byte [ebx]
jmp 0x49de75
cmp byte [ebx + 1], 0x34
jne 0x49e4b7
add ebx, 2
mov ebp, 3
movzx edx, byte [ebx]
mov ecx, 4
jmp 0x49deb8
mov edx, dword [esi]
mov ecx, dword [esi + 4]
add esi, 8
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
jmp 0x49e277
lea eax, [esp + 0x48]
mov ecx, 2
mov dword [esp + 0x48], 0
movzx edx, byte [ebx]
mov dword [esp + 0x28], eax
jmp 0x49deb8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], 8
mov dword [esp + 0x40], eax
jmp 0x49e00a
mov eax, 0x25
lea edx, [esp + 0x3c]
call fcn.0049ca00
movzx eax, byte [edi]
jmp 0x49de75
movsx eax, word [esp + 0x60]
mov esi, edx
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
jmp 0x49e1e0
movzx ecx, word [esp + 0x60]
mov esi, edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], ecx
jmp 0x49e277
test dl, dl
je 0x49e67a
or dword [esp + 0x40], 0x400
xor ecx, ecx
neg dword [esp + 0x44]
movzx edx, byte [ebx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
jmp 0x49deb8
mov edx, dword [esp + 0x54]
mov edi, ebx
mov eax, dword [esi]
add esi, 4
mov ecx, edx
sar ecx, 0x1f
mov dword [eax], edx
mov dword [eax + 4], ecx
movzx eax, byte [ebx]
jmp 0x49de75
movsx eax, byte [esp + 0x60]
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x49e1e0
movzx edx, byte [esp + 0x60]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], edx
jmp 0x49e277
add ebx, 2
mov ebp, 2
movzx edx, byte [ebx]
mov ecx, 4
jmp 0x49deb8
mov dword [esp + 0x48], 0xffffffff
jmp 0x49e32d