Function at 0x40ed90
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 0x40ef10
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
ja 0x40ef10
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 0x40ef00
add edi, 1
cmp eax, 0x25
jne 0x40ef22
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 0x40eef0
movsx eax, dl
sub edx, 0x20
add ebx, 1
cmp dl, 0x5a
jbe 0x40ef33
cmp eax, 0x39
jg 0x40f56a
cmp ecx, 3
ja 0x40f56a
cmp eax, 0x2f
jle 0x40f56a
test ecx, ecx
je 0x40f410
cmp ecx, 2
mov edx, 3
cmove ecx, edx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x40eee7
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
test edx, edx
mov dword [esp + 0x1c], edx
js 0x40f4c9
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 0x40ee7c
nop
xor eax, eax
mov edi, ebx
movsx eax, al
test eax, eax
jne 0x40ee40
nop
mov eax, dword [esp + 0x54]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004123a8
and eax, 1
neg eax
add eax, 3
jmp 0x40edd8
lea edx, [esp + 0x3c]
call fcn.0040d9c0
movzx eax, byte [edi]
jmp 0x40ee35
movzx edx, dl
jmp dword [edx*4 + 0x42a114]
movzx edx, byte [ebx]
mov ebp, 2
mov ecx, 4
jmp 0x40ee78
cmp byte [ebx], 0x6c
mov ebp, 2
jne case.0x40ef36.44
add ebx, 1
mov bp, 3
or dword [esp + 0x40], 4
mov ecx, 4
movzx edx, byte [ebx]
jmp 0x40ee78
sub ebp, 2
mov eax, esi
cmp ebp, 1
jbe case.0x40ef36.51
mov edi, dword [eax]
add esi, 4
mov edx, 6
mov eax, str._null_
test edi, edi
je 0x40efa2
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, edi
lea ecx, [esp + 0x3c]
mov edi, ebx
call fcn.0040db30
movzx eax, byte [ebx]
jmp 0x40ee35
test ecx, ecx
jne 0x40efca
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x40], ecx
je 0x40f555
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.0040ded0
movzx eax, byte [ebx]
jmp 0x40ee35
cmp ebp, 4
je 0x40f4ef
cmp ebp, 1
je 0x40f4b3
cmp ebp, 2
je 0x40f016
cmp ebp, 3
je 0x40f5db
mov eax, dword [esi]
mov edi, ebx
add esi, 4
mov edx, dword [esp + 0x54]
mov dword [eax], edx
movzx eax, byte [ebx]
jmp 0x40ee35
movzx edx, byte [ebx]
mov ebp, 3
mov ecx, 4
jmp 0x40ee78
movzx edx, byte [ebx]
mov ebp, 1
mov ecx, 4
cmp dl, 0x68
jne 0x40ee78
add ebx, 1
mov bp, 4
movzx edx, byte [ebx]
jmp 0x40ee78
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x40f400
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.0040e6f0
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x40ee35
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x40f351
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.0040e610
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x40ee35
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x40f36c
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.0040e550
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x40ee35
sub ebp, 2
mov eax, esi
cmp ebp, 1
mov dword [esp + 0x48], 0xffffffff
jbe 0x40f388
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.0040db30
movzx eax, byte [ebx]
jmp 0x40ee35
or dword [esp + 0x40], 0x80
cmp ebp, 3
je 0x40f4da
cmp ebp, 2
je 0x40f49c
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 0x40f580
cmp ebp, 4
mov esi, edx
je 0x40f5f8
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x3c]
mov edi, ebx
mov edx, dword [esp + 0x64]
call fcn.0040dc80
movzx eax, byte [ebx]
jmp 0x40ee35
mov eax, dword [esp + 0x40]
or eax, 0x20
test al, 4
mov dword [esp + 0x40], eax
je 0x40f3bc
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.0040e880
mov edi, ebx
movzx eax, byte [ebx]
jmp 0x40ee35
cmp ebp, 3
je 0x40f523
cmp ebp, 2
je 0x40f486
mov ecx, dword [esi]
cmp ebp, 1
lea edx, [esi + 4]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], ecx
je 0x40f599
cmp ebp, 4
mov esi, edx
je 0x40f60f
cmp eax, 0x75
je 0x40f1a0
lea edx, [esp + 0x3c]
mov ecx, dword [esp + 0x64]
mov edi, ebx
mov dword [esp], edx
mov edx, dword [esp + 0x60]
call fcn.0040ded0
movzx eax, byte [ebx]
jmp 0x40ee35
test ecx, ecx
jne case.0x40ef36.1
or dword [esp + 0x40], 0x200
movzx edx, byte [ebx]
jmp 0x40ee78
cmp ecx, 1
jbe 0x40f538
movzx edx, byte [ebx]
mov ecx, 4
jmp 0x40ee78
test ecx, ecx
jne 0x40eee7
or dword [esp + 0x40], 0x400
movzx edx, byte [ebx]
jmp 0x40ee78
test ecx, ecx
jne 0x40eee7
or dword [esp + 0x40], 0x100
movzx edx, byte [ebx]
jmp 0x40ee78
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40f281
test ecx, ecx
sete dl
cmp ecx, 2
jne 0x40f450
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 0x40f5b1
movzx edx, byte [ebx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
jmp 0x40ee78
lea edx, [esp + 0x3c]
mov edi, ebx
call fcn.0040d9c0
movzx eax, byte [ebx]
jmp 0x40ee35
test ecx, ecx
jne 0x40eee7
or dword [esp + 0x40], 0x800
movzx edx, byte [ebx]
jmp 0x40ee78
test ecx, ecx
jne 0x40eee7
or dword [esp + 0x40], 0x40
movzx edx, byte [ebx]
jmp 0x40ee78
mov eax, dword [esp + 0x40]
test al, 4
jne 0x40f0b8
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x40f0ce
mov eax, dword [esp + 0x40]
test al, 4
jne 0x40f0f6
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x40f10c
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.0040da20
movzx eax, byte [ebx]
jmp 0x40ee35
mov eax, dword [esp + 0x40]
test al, 4
jne 0x40f1d3
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x40f1e9
movzx edx, byte [ebx]
cmp dl, 0x36
je 0x40f504
cmp dl, 0x33
je 0x40f46d
mov ebp, 2
mov ecx, 4
jmp 0x40ee78
mov eax, dword [esp + 0x40]
test al, 4
jne 0x40f07a
fld qword [esi]
lea edi, [esi + 8]
fstp xword [esp]
jmp 0x40f090
mov ecx, 1
jmp 0x40eebc
mov eax, dword [esi]
lea edi, [esi + 4]
mov esi, 0x42a0e8
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.0040da20
mov esi, edi
movzx eax, byte [ebx]
mov edi, ebx
jmp 0x40ee35
test dl, dl
jne 0x40f2d6
movzx edx, byte [ebx]
mov ecx, 4
mov dword [esp + 0x28], 0
jmp 0x40ee78
cmp byte [ebx + 1], 0x32
je 0x40f625
mov ebp, 2
mov ecx, 4
jmp 0x40ee7c
mov edx, dword [esi]
add esi, 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], edx
jmp 0x40f237
mov eax, dword [esi]
add esi, 4
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
jmp 0x40f1a0
mov eax, dword [esi]
mov edi, ebx
add esi, 4
mov edx, dword [esp + 0x54]
mov word [eax], dx
movzx eax, byte [ebx]
jmp 0x40ee35
mov edx, dword [esp + 0x28]
sub eax, 0x30
mov dword [edx], eax
movzx edx, byte [ebx]
jmp 0x40ee78
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x40f1a0
mov eax, dword [esi]
mov edi, ebx
add esi, 4
mov edx, dword [esp + 0x54]
mov byte [eax], dl
movzx eax, byte [ebx]
jmp 0x40ee35
cmp byte [ebx + 1], 0x34
jne 0x40f477
add ebx, 2
mov ebp, 3
movzx edx, byte [ebx]
mov ecx, 4
jmp 0x40ee78
mov edx, dword [esi]
mov ecx, dword [esi + 4]
add esi, 8
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
jmp 0x40f237
lea eax, [esp + 0x48]
mov ecx, 2
mov dword [esp + 0x48], 0
movzx edx, byte [ebx]
mov dword [esp + 0x28], eax
jmp 0x40ee78
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], 8
mov dword [esp + 0x40], eax
jmp 0x40efca
mov eax, 0x25
lea edx, [esp + 0x3c]
call fcn.0040d9c0
movzx eax, byte [edi]
jmp 0x40ee35
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 0x40f1a0
movzx ecx, word [esp + 0x60]
mov esi, edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], ecx
jmp 0x40f237
test dl, dl
je 0x40f63a
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 0x40ee78
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 0x40ee35
movsx eax, byte [esp + 0x60]
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x40f1a0
movzx edx, byte [esp + 0x60]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], edx
jmp 0x40f237
add ebx, 2
mov ebp, 2
movzx edx, byte [ebx]
mov ecx, 4
jmp 0x40ee78
mov dword [esp + 0x48], 0xffffffff
jmp 0x40f2ed