Function at 0x627c80
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
xor ebx, ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xac]
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xfffffffd
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
mov word [esp + 0x68], bx
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], si
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x74], 0
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 0x627d1c
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x627d29
call fcn.0062e370
and eax, 1
neg eax
add eax, 3
mov dword [esp + 0x7c], eax
movzx ecx, byte [ebp]
lea edi, [ebp + 1]
movsx eax, cl
test eax, eax
je 0x627dd0
cmp eax, 0x25
jne 0x627de0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], 0xffffffff
mov esi, edi
xor edx, edx
movzx ecx, byte [ebp + 1]
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], eax
test cl, cl
je 0x627db7
lea eax, [ecx - 0x20]
movsx ebx, cl
lea ebp, [esi + 1]
cmp al, 0x5a
ja case.0x627d90.1
movzx eax, al
jmp dword [eax*4 + 0x6d7c50]
movzx ecx, byte [esi + 1]
mov dword [esp + 0x1c], 0
mov edx, 4
mov esi, ebp
test cl, cl
jne 0x627d7c
mov ebp, esi
movsx eax, cl
lea edi, [ebp + 1]
test eax, eax
jne 0x627d3f
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.00626520
movzx ecx, byte [ebp + 1]
mov ebp, edi
jmp 0x627d31
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xb0]
sub edx, 2
cmp edx, 1
jbe case.0x627d90.51
mov ebx, dword [eax]
add dword [esp + 0xb0], 4
test ebx, ebx
je 0x627f07
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x54]
mov eax, ebx
call fcn.006266a0
movzx ecx, byte [ebp]
jmp 0x627d31
test edx, edx
jne 0x627e52
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x58], eax
je 0x628696
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.00627370
mov dword [esp + 0xb0], ebx
jmp 0x627e32
mov eax, dword [esp + 0xb0]
cmp dword [esp + 0x1c], 5
mov edx, dword [esp + 0x74]
mov eax, dword [eax]
je 0x6285a1
cmp dword [esp + 0x1c], 1
je 0x62865c
cmp dword [esp + 0x1c], 2
je 0x6286d9
cmp dword [esp + 0x1c], 3
mov dword [eax], edx
je 0x628748
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x627e32
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov ebx, eax
test eax, eax
jne 0x627e1d
mov edx, 6
mov ebx, str._null_
jmp 0x627e27
movzx ecx, byte [esi + 1]
cmp cl, 0x6c
je 0x628525
mov dword [esp + 0x1c], 2
mov edx, 4
mov esi, ebp
jmp 0x627db3
movzx ecx, byte [esi + 1]
mov dword [esp + 0x1c], 3
mov edx, 4
mov esi, ebp
jmp 0x627db3
movzx ecx, byte [esi + 1]
cmp cl, 0x68
je 0x628586
mov dword [esp + 0x1c], 1
mov edx, 4
mov esi, ebp
jmp 0x627db3
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
mov dword [esp + 0x58], eax
test al, 4
je 0x6281e3
fld xword [edx]
add dword [esp + 0xb0], 0xc
lea eax, [esp + 0x54]
fstp xword [esp]
call fcn.006271e0
jmp 0x627e32
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
mov dword [esp + 0x58], eax
test al, 4
je 0x628213
fld xword [edx]
add dword [esp + 0xb0], 0xc
lea eax, [esp + 0x54]
fstp xword [esp]
call fcn.00626c70
jmp 0x627e32
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
mov dword [esp + 0x58], eax
test al, 4
je 0x628243
fld xword [edx]
add dword [esp + 0xb0], 0xc
lea eax, [esp + 0x54]
fstp xword [esp]
call fcn.00627130
jmp 0x627e32
cmp dword [esp + 0x1c], 3
mov eax, dword [esp + 0xb0]
je 0x628563
cmp dword [esp + 0x1c], 2
je 0x62863a
lea ecx, [eax + 4]
xor edx, edx
mov eax, dword [eax]
cmp dword [esp + 0x1c], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
je 0x6286f1
cmp dword [esp + 0x1c], 5
mov dword [esp + 0xb0], ecx
je 0x628721
cmp ebx, 0x75
je 0x628180
lea edi, [esp + 0x54]
mov ecx, edx
mov edx, eax
mov dword [esp], edi
mov eax, ebx
call fcn.00627370
jmp 0x627e32
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0xb0]
sub edx, 2
cmp edx, 1
jbe 0x628268
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.006266a0
jmp 0x627e32
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
or eax, 0x20
mov dword [esp + 0x58], eax
test al, 4
je 0x6282b3
fld xword [edx]
add dword [esp + 0xb0], 0xc
lea eax, [esp + 0x54]
fstp xword [esp]
call fcn.00627710
jmp 0x627e32
or dword [esp + 0x58], 0x80
cmp dword [esp + 0x1c], 3
mov eax, dword [esp + 0xb0]
je 0x628540
cmp dword [esp + 0x1c], 2
je 0x628675
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 0x6286bf
cmp dword [esp + 0x1c], 5
mov dword [esp + 0xb0], ecx
je 0x628735
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.00626d50
jmp 0x627e32
movzx ecx, byte [esi + 1]
mov edx, 4
mov esi, ebp
or dword [esp + 0x58], 4
jmp 0x627db3
movzx ecx, byte [esi + 1]
cmp cl, 0x36
je 0x6285b9
cmp cl, 0x33
je 0x628610
mov dword [esp + 0x1c], 0
mov edx, 4
mov esi, ebp
jmp 0x627db3
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x627f9b
fld qword [edx]
lea eax, [esp + 0x54]
fstp xword [esp]
add dword [esp + 0xb0], 8
call fcn.006271e0
jmp 0x627e32
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x627fda
fld qword [edx]
lea eax, [esp + 0x54]
fstp xword [esp]
add dword [esp + 0xb0], 8
call fcn.00626c70
jmp 0x627e32
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x62800f
fld qword [edx]
lea eax, [esp + 0x54]
fstp xword [esp]
add dword [esp + 0xb0], 8
call fcn.00627130
jmp 0x627e32
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.00626580
mov dword [esp + 0xb0], ebx
jmp 0x627e32
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0xb0]
test al, 4
jne 0x6280fe
fld qword [edx]
lea eax, [esp + 0x54]
fstp xword [esp]
add dword [esp + 0xb0], 8
call fcn.00627710
jmp 0x627e32
test edx, edx
jne 0x628490
movzx ecx, byte [esi + 1]
mov esi, ebp
or dword [esp + 0x58], 0x200
jmp 0x627db3
cmp edx, 1
jbe 0x6285dc
movzx ecx, byte [esi + 1]
mov edx, 4
mov esi, ebp
jmp 0x627db3
test edx, edx
jne 0x62838c
movzx ecx, byte [esi + 1]
mov esi, ebp
or dword [esp + 0x58], 0x400
jmp 0x627db3
test edx, edx
jne 0x62838c
movzx ecx, byte [esi + 1]
mov esi, ebp
or dword [esp + 0x58], 0x100
jmp 0x627db3
test edx, edx
jne 0x62838c
movzx ecx, byte [esi + 1]
mov esi, ebp
or dword [esp + 0x58], 0x800
jmp 0x627db3
test edx, edx
jne 0x62838c
movzx ecx, byte [esi + 1]
mov esi, ebp
or dword [esp + 0x58], 0x40
jmp 0x627db3
test edx, edx
je 0x6284c8
movzx ecx, byte [esi + 1]
mov esi, ebp
jmp 0x627db3
lea edx, [esp + 0x54]
mov eax, ebx
call fcn.00626520
jmp 0x627e32
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x6282f9
test edx, 0xfffffffd
jne 0x6284b0
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
lea ebx, [eax + 4]
mov eax, dword [eax]
mov dword [ecx], eax
test eax, eax
js 0x62870c
movzx ecx, byte [esi + 1]
mov dword [esp + 0xb0], ebx
mov esi, ebp
mov dword [esp + 0x20], 0
jmp 0x627db3
sub ecx, 0x30
cmp cl, 9
ja 0x6286aa
cmp edx, 3
ja 0x6286aa
test edx, edx
jne 0x628499
mov edx, 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x62838c
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
js 0x6285fc
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 0x628390
mov eax, dword [esp + 0xb0]
mov ebx, dword [eax]
lea esi, [eax + 4]
mov eax, 0x6d7c24
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.00626580
mov dword [esp + 0xb0], esi
jmp 0x627e32
cmp edx, 3
ja 0x6286aa
cmp edx, 2
mov eax, 3
cmove edx, eax
jmp 0x628422
movzx ecx, byte [esi + 1]
mov dword [esp + 0x20], 0
mov edx, 4
mov esi, ebp
jmp 0x627db3
or dword [esp + 0x58], 0x1000
mov dword [esp + 0x2c], edx
lea ebx, [esp + 0x40]
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.00621930
mov edx, dword [esp + 0x2c]
test eax, eax
jle 0x628516
movzx ecx, word [esp + 0x3e]
mov word [esp + 0x70], cx
movzx ecx, byte [esi + 1]
mov dword [esp + 0x6c], eax
mov esi, ebp
jmp 0x627db3
lea ebp, [esi + 2]
movzx ecx, byte [esi + 2]
mov edx, 4
mov dword [esp + 0x1c], 3
mov esi, ebp
jmp 0x627db3
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 0x628170
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 0x628079
lea ebp, [esi + 2]
movzx ecx, byte [esi + 2]
mov edx, 4
mov dword [esp + 0x1c], 5
mov esi, ebp
jmp 0x627db3
mov byte [eax], dl
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x627e32
cmp byte [esi + 2], 0x34
je 0x628766
mov ecx, 0x36
mov dword [esp + 0x1c], 0
mov edx, 4
mov esi, ebp
jmp 0x627db3
lea eax, [esp + 0x60]
movzx ecx, byte [esi + 1]
mov edx, 2
mov esi, ebp
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], eax
jmp 0x627db3
mov eax, dword [esp + 0x20]
sub ebx, 0x30
movzx ecx, byte [esi + 1]
mov esi, ebp
mov dword [eax], ebx
jmp 0x627db3
cmp byte [esi + 2], 0x32
mov ecx, 0x33
jne 0x6281bb
lea ebp, [esi + 3]
movzx ecx, byte [esi + 3]
mov edx, 4
mov dword [esp + 0x1c], 2
mov esi, ebp
jmp 0x627db3
mov edi, dword [esp + 0xb0]
xor edx, edx
mov eax, dword [eax]
mov dword [esp + 0x44], edx
add edi, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0xb0], edi
jmp 0x628079
mov word [eax], dx
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x627e32
mov eax, dword [eax]
mov ebx, dword [esp + 0xb0]
cdq
mov dword [esp + 0x40], eax
add ebx, 4
mov dword [esp + 0x44], edx
mov dword [esp + 0xb0], ebx
jmp 0x628170
or ah, 2
mov dword [esp + 0x60], 8
mov dword [esp + 0x58], eax
jmp 0x627e52
lea edx, [esp + 0x54]
mov eax, 0x25
mov ebp, edi
call fcn.00626520
jmp 0x627e32
movsx eax, word [esp + 0x40]
mov dword [esp + 0xb0], ecx
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x628170
mov dword [eax], edx
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x627e32
movzx eax, word [esp + 0x40]
xor edx, edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x628079
test edx, edx
jne 0x628781
or dword [esp + 0x58], 0x400
neg dword [esp + 0x5c]
jmp 0x6283e2
movzx eax, byte [esp + 0x40]
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x628079
movsx eax, byte [esp + 0x40]
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x628170
mov ebx, edx
sar ebx, 0x1f
mov dword [eax + 4], ebx
mov eax, dword [esp + 0xb0]
add eax, 4
mov dword [esp + 0xb0], eax
jmp 0x627e32
lea ebp, [esi + 3]
movzx ecx, byte [esi + 3]
mov edx, 4
mov dword [esp + 0x1c], 3
mov esi, ebp
jmp 0x627db3
movzx ecx, byte [esi + 1]
mov dword [esp + 0x60], 0xffffffff
mov esi, ebp
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x20], 0
jmp 0x627db3