Function at 0x6727e480
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x6c
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
call sym.__errno
and dword [esp + 0x80], 0x6000
mov eax, dword [eax]
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], 0xfffffffd
mov word [esp + 0x48], si
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x54], 0
mov dword [esp + 0x38], eax
xor eax, eax
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x58], eax
call sym._getenv
test eax, eax
je 0x6727e522
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x6727e52f
call sym.__get_output_format
and eax, 1
neg eax
add eax, 3
mov dword [esp + 0x5c], eax
movsx eax, byte [edi]
lea ebx, [edi + 1]
mov esi, ebx
test eax, eax
je 0x6727e5d6
cmp eax, 0x25
jne 0x6727e5e2
mov eax, dword [esp + 0x80]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], eax
movzx edx, byte [edi + 1]
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
test dl, dl
je 0x6727e5c4
lea ecx, [edx - 0x20]
movsx eax, dl
cmp cl, 0x5a
lea edi, [esi + 1]
ja case.0x6727e59c.1
movzx ecx, cl
jmp dword [ecx*4 + 0x672d8c38]
movzx edx, byte [esi + 1]
mov esi, edi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
lea esi, [esi]
test dl, dl
jne 0x6727e587
mov edi, esi
movsx eax, byte [edi]
lea ebx, [edi + 1]
mov esi, ebx
test eax, eax
jne 0x6727e543
mov eax, dword [esp + 0x54]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x34]
mov edi, ebx
call sym.___pformat_putc
jmp 0x6727e533
mov edx, dword [esp + 0x14]
mov eax, ebp
sub edx, 2
cmp edx, 1
jbe case.0x6727e59c.51
mov ebx, dword [eax]
add ebp, 4
test ebx, ebx
je 0x6727e926
mov dword [esp], ebx
call sym._strlen
mov edx, eax
lea ecx, [esp + 0x34]
mov eax, ebx
call sym.___pformat_putchars
jmp 0x6727e533
mov edx, dword [esp + 0x14]
mov eax, ebp
mov dword [esp + 0x40], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x6727eaf0
mov eax, dword [eax]
lea ecx, [esp + 0x34]
mov edx, 1
add ebp, 4
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
call sym.___pformat_putchars
jmp 0x6727e533
mov eax, dword [esp + 0x38]
or eax, 0x20
test al, 4
mov dword [esp + 0x38], eax
je 0x6727ea0c
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_xldouble
jmp 0x6727e533
mov eax, dword [esp + 0x38]
or eax, 0x20
test al, 4
mov dword [esp + 0x38], eax
je 0x6727eacf
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_efloat
jmp 0x6727e533
or dword [esp + 0x38], 0x80
cmp dword [esp + 0x14], 3
je 0x6727ec86
cmp dword [esp + 0x14], 2
je 0x6727ed4b
mov eax, dword [ebp]
lea edx, [ebp + 4]
mov dword [esp + 0x28], eax
sar eax, 0x1f
cmp dword [esp + 0x14], 1
mov dword [esp + 0x2c], eax
je 0x6727ed9d
cmp dword [esp + 0x14], 4
mov ebp, edx
je 0x6727edf5
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x2c]
call sym.___pformat_int
jmp 0x6727e533
cmp dword [esp + 0x14], 3
je 0x6727ecba
cmp dword [esp + 0x14], 2
je 0x6727ed29
mov esi, dword [ebp]
lea edx, [ebp + 4]
cmp dword [esp + 0x14], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
je 0x6727edb4
cmp dword [esp + 0x14], 4
mov ebp, edx
je 0x6727ee0a
cmp eax, 0x75
je 0x6727e717
mov edx, dword [esp + 0x28]
lea esi, [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov dword [esp], esi
call sym.___pformat_xint
jmp 0x6727e533
or dword [esp + 0x38], 4
movzx edx, byte [esi + 1]
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
movzx edx, byte [esi + 1]
cmp dl, 0x36
je 0x6727ecd0
cmp dl, 0x33
jne 0x6727e942
cmp byte [esi + 2], 0x32
je 0x6727ed75
mov edx, 0x33
mov esi, edi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x6727e7fd
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x38], eax
je 0x6727ed61
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov ebp, ebx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
mov dword [esp], eax
mov eax, 0x78
call sym.___pformat_xint
jmp 0x6727e533
cmp dword [esp + 0x14], 4
je 0x6727ec57
cmp dword [esp + 0x14], 1
mov eax, dword [ebp]
mov edx, dword [esp + 0x54]
je 0x6727ed40
cmp dword [esp + 0x14], 2
je 0x6727ed93
cmp dword [esp + 0x14], 3
mov dword [eax], edx
je 0x6727ede5
add ebp, 4
jmp 0x6727e533
movzx edx, byte [esi + 1]
mov esi, edi
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
movzx edx, byte [esi + 1]
cmp dl, 0x68
je 0x6727ec9c
mov dword [esp + 0x14], 1
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov eax, dword [esp + 0x38]
or eax, 0x20
test al, 4
mov dword [esp + 0x38], eax
je 0x6727e96c
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_gfloat
jmp 0x6727e533
mov eax, dword [esp + 0x38]
or eax, 0x20
test al, 4
mov dword [esp + 0x38], eax
je 0x6727eb20
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_float
jmp 0x6727e533
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._strerror
test eax, eax
mov ebx, eax
jne 0x6727e611
mov edx, 6
mov ebx, str._null_
jmp 0x6727e61b
movzx edx, byte [esi + 1]
cmp dl, 0x6c
je 0x6727ec68
mov dword [esp + 0x14], 2
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov eax, dword [esp + 0x38]
test al, 4
jne 0x6727e8c7
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_gfloat
jmp 0x6727e533
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6727e9ef
or dword [esp + 0x38], 0x100
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x6727ea91
test dword [esp + 0x10], 0xfffffffd
jne 0x6727ebe7
mov edx, dword [ebp]
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x18]
test edx, edx
mov dword [ecx], edx
js 0x6727edcc
movzx edx, byte [esi + 1]
mov ebp, eax
mov esi, edi
mov dword [esp + 0x18], 0
jmp 0x6727e5c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6727ec02
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
mov eax, dword [esp + 0x38]
test al, 4
jne 0x6727e683
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_xldouble
jmp 0x6727e533
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x6727ebd4
mov ecx, dword [esp + 0x10]
cmp ecx, 4
je 0x6727ee5b
sub edx, 0x30
cmp dl, 9
ja 0x6727ee5b
test ecx, ecx
jne 0x6727ebc0
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x18]
test edx, edx
je 0x6727e9ef
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
test edx, edx
js 0x6727ed19
mov ecx, dword [esp + 0x18]
lea edx, [edx + edx*4]
lea eax, [eax + edx*2 - 0x30]
mov dword [ecx], eax
movzx edx, byte [esi + 1]
jmp 0x6727e9f3
cmp dword [esp + 0x10], 1
jbe 0x6727ecf6
movzx edx, byte [esi + 1]
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6727e9ef
or dword [esp + 0x38], 0x400
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
mov eax, dword [esp + 0x38]
test al, 4
jne 0x6727e6b3
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_efloat
jmp 0x6727e533
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov edx, 1
lea ecx, [esp + 0x34]
mov ebp, ebx
mov word [esp + 0x28], ax
lea eax, [esp + 0x28]
call sym.___pformat_wputchars
jmp 0x6727e533
mov eax, dword [esp + 0x38]
test al, 4
jne 0x6727e8f3
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x34]
call sym.___pformat_float
jmp 0x6727e533
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6727e9ef
or dword [esp + 0x38], 0x800
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6727e9ef
or dword [esp + 0x38], 0x40
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
lea edx, [esp + 0x34]
call sym.___pformat_putc
jmp 0x6727e533
mov ebx, dword [ebp]
mov eax, 0x672d8c0c
lea esi, [ebp + 4]
mov ebp, esi
test ebx, ebx
cmove ebx, eax
mov dword [esp], ebx
call sym._wcslen
lea ecx, [esp + 0x34]
mov edx, eax
mov eax, ebx
call sym.___pformat_wputchars
jmp 0x6727e533
cmp ecx, 2
mov edx, 3
cmovne edx, ecx
mov dword [esp + 0x10], edx
jmp 0x6727ea5a
or dword [esp + 0x38], 0x200
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
movzx edx, byte [esi + 1]
mov esi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
or dword [esp + 0x38], 0x1000
mov dword [esp + 0x28], 0
call sym._localeconv
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
lea eax, [esp + 0x26]
mov dword [esp], eax
call sym._mbrtowc
test eax, eax
jle 0x6727ec48
movzx edx, word [esp + 0x26]
mov word [esp + 0x50], dx
mov dword [esp + 0x4c], eax
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
mov edx, dword [ebp]
add ebp, 4
mov eax, dword [esp + 0x54]
mov byte [edx], al
jmp 0x6727e533
lea edi, [esi + 2]
movzx edx, byte [esi + 2]
mov dword [esp + 0x14], 3
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov eax, dword [ebp]
add ebp, 8
mov edx, dword [ebp - 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x6727e717
lea edi, [esi + 2]
movzx edx, byte [esi + 2]
mov dword [esp + 0x14], 4
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov ecx, dword [ebp]
add ebp, 8
mov ebx, dword [ebp - 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jmp 0x6727e770
cmp byte [esi + 2], 0x34
je 0x6727ee20
mov edx, 0x36
mov esi, edi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
movzx edx, byte [esi + 1]
mov esi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 2
jmp 0x6727e5c0
sub eax, 0x30
mov dword [ecx], eax
movzx edx, byte [esi + 1]
mov esi, edi
jmp 0x6727e5c0
mov esi, dword [ebp]
add ebp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
jmp 0x6727e770
mov word [eax], dx
add ebp, 4
jmp 0x6727e533
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x28], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
jmp 0x6727e717
or ah, 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 8
jmp 0x6727e7fd
lea edi, [esi + 3]
movzx edx, byte [esi + 3]
mov dword [esp + 0x14], 2
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov dword [eax], edx
add ebp, 4
jmp 0x6727e533
movsx eax, word [esp + 0x28]
mov ebp, edx
mov dword [esp + 0x28], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
jmp 0x6727e717
movzx ecx, word [esp + 0x28]
mov ebp, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ecx
jmp 0x6727e770
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x6727ee3e
or dword [esp + 0x38], 0x400
neg dword [esp + 0x3c]
jmp 0x6727e9ce
mov esi, edx
add ebp, 4
sar esi, 0x1f
mov dword [eax + 4], esi
jmp 0x6727e533
movsx eax, byte [esp + 0x28]
mov dword [esp + 0x28], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
jmp 0x6727e717
movzx edx, byte [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
jmp 0x6727e770
lea edi, [esi + 3]
movzx edx, byte [esi + 3]
mov dword [esp + 0x14], 3
mov esi, edi
mov dword [esp + 0x10], 4
jmp 0x6727e5c0
mov dword [esp + 0x40], 0xffffffff
mov ebp, eax
movzx edx, byte [esi + 1]
mov dword [esp + 0x18], 0
mov esi, edi
jmp 0x6727e5c0
lea edx, [esp + 0x34]
mov eax, 0x25
mov edi, ebx
call sym.___pformat_putc
jmp 0x6727e533