Function at 0x4b1d10
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0xa0]
call sub.msvcrt.dll__errno
and dword [esp + 0x90], 0x3000
mov eax, dword [eax]
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x54], 0xfffffffd
mov word [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x90]
mov word [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x68], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4b1db2
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x4b1dbf
call fcn.004b7a20
and eax, 1
neg eax
add eax, 3
mov dword [esp + 0x6c], eax
movsx eax, byte [ebp]
lea esi, [ebp + 1]
test eax, eax
je 0x4b1e92
cmp eax, 0x25
jne 0x4b1ea0
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x4c]
mov ebx, esi
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x48], edx
movzx edx, byte [ebp + 1]
mov dword [esp + 0x24], 0
test dl, dl
je 0x4b1e81
movsx eax, dl
sub edx, 0x20
cmp dl, 0x5a
lea ebp, [ebx + 1]
jbe 0x4b1eb0
cmp eax, 0x39
jg 0x4b2597
cmp ecx, 3
ja 0x4b2597
cmp eax, 0x2f
jle 0x4b2597
test ecx, ecx
jne 0x4b2468
mov ecx, 1
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4b1e77
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
test edx, edx
mov dword [esp + 0x1c], edx
js 0x4b2535
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 + 1]
mov ebx, ebp
test dl, dl
jne 0x4b1e12
mov ebp, ebx
movsx eax, byte [ebp]
lea esi, [ebp + 1]
test eax, eax
jne 0x4b1dd2
mov eax, dword [esp + 0x64]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x44]
mov ebp, esi
call fcn.004b07a0
jmp 0x4b1dc3
movzx edx, dl
jmp dword [edx*4 + 0x5618d8]
movzx edx, byte [ebx + 1]
mov ecx, 4
mov ebx, ebp
mov dword [esp + 0x24], 2
jmp 0x4b1e7d
mov edx, dword [esp + 0x24]
mov eax, edi
sub edx, 2
cmp edx, 1
jbe case.0x4b1eb3.51
mov ebx, dword [eax]
add edi, 4
test ebx, ebx
je 0x4b2168
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x44]
mov eax, ebx
call fcn.004b0900
jmp 0x4b1dc3
mov edx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x50], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x4b22b8
mov eax, dword [eax]
lea ecx, [esp + 0x44]
mov edx, 1
add edi, 4
mov byte [esp + 0x38], al
lea eax, [esp + 0x38]
call fcn.004b0900
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
je 0x4b22ec
fld xword [edi]
lea ebx, [edi + 0xc]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b1740
jmp 0x4b1dc3
cmp dword [esp + 0x24], 3
je 0x4b24e0
cmp dword [esp + 0x24], 2
je 0x4b2549
mov ecx, dword [edi]
lea edx, [edi + 4]
cmp dword [esp + 0x24], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ecx
je 0x4b25ac
cmp dword [esp + 0x24], 4
mov edi, edx
je 0x4b25fc
cmp eax, 0x75
je 0x4b20b8
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov dword [esp], edx
mov edx, dword [esp + 0x38]
call fcn.004b0d00
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
je 0x4b224c
fld xword [edi]
lea ebx, [edi + 0xc]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b15c0
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
je 0x4b2270
fld xword [edi]
lea ebx, [edi + 0xc]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b14e0
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
je 0x4b2294
fld xword [edi]
lea ebx, [edi + 0xc]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b1c60
jmp 0x4b1dc3
or dword [esp + 0x48], 0x80
cmp dword [esp + 0x24], 3
je 0x4b24cb
cmp dword [esp + 0x24], 2
je 0x4b256a
mov eax, dword [edi]
lea edx, [edi + 4]
mov edi, eax
sar edi, 0x1f
cmp dword [esp + 0x24], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
je 0x4b25c4
cmp dword [esp + 0x24], 4
mov edi, edx
je 0x4b2612
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x44]
mov edx, dword [esp + 0x3c]
call fcn.004b0a40
jmp 0x4b1dc3
test ecx, ecx
jne 0x4b20e5
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x48], ecx
je 0x4b2581
mov eax, dword [edi]
lea edx, [esp + 0x44]
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
lea ebx, [edi + 4]
mov dword [esp], edx
mov edi, ebx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x38]
mov eax, 0x78
call fcn.004b0d00
jmp 0x4b1dc3
cmp dword [esp + 0x24], 4
je 0x4b24bb
cmp dword [esp + 0x24], 1
mov eax, dword [edi]
mov edx, dword [esp + 0x64]
je 0x4b255f
cmp dword [esp + 0x24], 2
je 0x4b25dd
cmp dword [esp + 0x24], 3
mov dword [eax], edx
je 0x4b2629
add edi, 4
jmp 0x4b1dc3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov ebx, eax
jne 0x4b1ef4
mov edx, 6
mov ebx, str._null_
jmp 0x4b1efe
movzx edx, byte [ebx + 1]
mov ecx, 4
mov dword [esp + 0x24], 2
cmp dl, 0x6c
jne 0x4b1e7b
lea ebp, [ebx + 2]
movzx edx, byte [ebx + 2]
mov dword [esp + 0x24], 3
mov ebx, ebp
jmp 0x4b1e7d
movzx edx, byte [ebx + 1]
mov ecx, 4
mov ebx, ebp
mov dword [esp + 0x24], 3
jmp 0x4b1e7d
movzx edx, byte [ebx + 1]
mov ecx, 4
mov dword [esp + 0x24], 1
cmp dl, 0x68
jne 0x4b1e7b
lea ebp, [ebx + 2]
movzx edx, byte [ebx + 2]
mov dword [esp + 0x24], 4
mov ebx, ebp
jmp 0x4b1e7d
or dword [esp + 0x48], 4
mov ecx, 4
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
movzx edx, byte [ebx + 1]
mov ecx, 4
mov dword [esp + 0x24], 2
cmp dl, 0x36
je 0x4b24f5
cmp dl, 0x33
jne 0x4b1e7b
cmp byte [ebx + 2], 0x32
jne 0x4b1e7b
lea ebp, [ebx + 3]
movzx edx, byte [ebx + 3]
mov ebx, ebp
jmp 0x4b1e7d
mov eax, dword [esp + 0x48]
test al, 4
jne 0x4b1ff4
fld qword [edi]
lea ebx, [edi + 8]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b15c0
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
test al, 4
jne 0x4b2023
fld qword [edi]
lea ebx, [edi + 8]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b14e0
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
test al, 4
jne 0x4b2053
fld qword [edi]
lea ebx, [edi + 8]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b1c60
jmp 0x4b1dc3
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [edi]
lea ebx, [edi + 4]
mov edx, 1
lea ecx, [esp + 0x44]
mov edi, ebx
mov word [esp + 0x32], ax
lea eax, [esp + 0x32]
call fcn.004b0800
jmp 0x4b1dc3
mov eax, dword [esp + 0x48]
test al, 4
jne 0x4b1f63
fld qword [edi]
lea ebx, [edi + 8]
fstp xword [esp]
mov edi, ebx
lea eax, [esp + 0x44]
call fcn.004b1740
jmp 0x4b1dc3
test ecx, ecx
jne case.0x4b1eb3.1
or dword [esp + 0x48], 0x200
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
cmp ecx, 1
jbe 0x4b2515
movzx edx, byte [ebx + 1]
mov ecx, 4
mov ebx, ebp
jmp 0x4b1e7d
test ecx, ecx
jne 0x4b1e77
or dword [esp + 0x48], 0x400
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
test ecx, ecx
jne 0x4b1e77
or dword [esp + 0x48], 0x100
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b2329
test ecx, 0xfffffffd
jne 0x4b24a3
mov edx, dword [edi]
lea eax, [edi + 4]
mov edi, dword [esp + 0x28]
test edx, edx
mov dword [edi], edx
js 0x4b25e7
movzx edx, byte [ebx + 1]
mov edi, eax
mov ebx, ebp
mov dword [esp + 0x28], 0
jmp 0x4b1e7d
test ecx, ecx
jne 0x4b1e77
mov dword [esp + 0x20], ecx
or dword [esp + 0x48], 0x1000
mov dword [esp + 0x34], 0
call sub.msvcrt.dll_localeconv
lea edx, [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
lea eax, [esp + 0x32]
mov dword [esp], eax
call fcn.004acf70
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x4b2416
movzx edx, word [esp + 0x32]
mov word [esp + 0x60], dx
mov dword [esp + 0x5c], eax
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
lea edx, [esp + 0x44]
call fcn.004b07a0
jmp 0x4b1dc3
test ecx, ecx
jne 0x4b1e77
or dword [esp + 0x48], 0x800
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
test ecx, ecx
jne 0x4b1e77
or dword [esp + 0x48], 0x40
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
cmp ecx, 2
mov edx, 3
cmove ecx, edx
jmp 0x4b1e4c
mov ebx, dword [edi]
mov eax, 0x5618ac
lea esi, [edi + 4]
mov edi, esi
test ebx, ebx
cmove ebx, eax
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x44]
mov edx, eax
mov eax, ebx
call fcn.004b0800
jmp 0x4b1dc3
movzx edx, byte [ebx + 1]
mov ecx, 4
mov ebx, ebp
mov dword [esp + 0x28], 0
jmp 0x4b1e7d
mov edx, dword [edi]
add edi, 4
mov eax, dword [esp + 0x64]
mov byte [edx], al
jmp 0x4b1dc3
mov eax, dword [edi]
mov edx, dword [edi + 4]
add edi, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x4b20b8
mov ecx, dword [edi]
mov ebx, dword [edi + 4]
add edi, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
jmp 0x4b1fbf
cmp byte [ebx + 2], 0x34
jne 0x4b1e7b
lea ebp, [ebx + 3]
movzx edx, byte [ebx + 3]
mov dword [esp + 0x24], 3
mov ebx, ebp
jmp 0x4b1e7d
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
movzx edx, byte [ebx + 1]
mov ebx, ebp
mov dword [esp + 0x28], ecx
mov ecx, 2
jmp 0x4b1e7d
mov edx, dword [esp + 0x28]
sub eax, 0x30
mov dword [edx], eax
movzx edx, byte [ebx + 1]
mov ebx, ebp
jmp 0x4b1e7d
mov edx, dword [edi]
add edi, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], edx
jmp 0x4b1fbf
mov word [eax], dx
add edi, 4
jmp 0x4b1dc3
mov eax, dword [edi]
add edi, 4
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4b20b8
mov eax, ecx
or ah, 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 8
jmp 0x4b20e5
lea edx, [esp + 0x44]
mov eax, 0x25
call fcn.004b07a0
mov ebp, esi
jmp 0x4b1dc3
movzx ecx, word [esp + 0x38]
mov edi, edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ecx
jmp 0x4b1fbf
movsx eax, word [esp + 0x38]
mov edi, edx
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4b20b8
mov dword [eax], edx
add edi, 4
jmp 0x4b1dc3
test ecx, ecx
jne 0x4b2639
or dword [esp + 0x48], 0x400
neg dword [esp + 0x4c]
jmp 0x4b23a7
movzx edx, byte [esp + 0x38]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], edx
jmp 0x4b1fbf
movsx eax, byte [esp + 0x38]
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x4b20b8
mov ecx, edx
add edi, 4
sar ecx, 0x1f
mov dword [eax + 4], ecx
jmp 0x4b1dc3
mov dword [esp + 0x50], 0xffffffff
mov edi, eax
movzx edx, byte [ebx + 1]
mov dword [esp + 0x28], 0
mov ebx, ebp
jmp 0x4b1e7d