Function at 0x4b9b30
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x7c
mov ebx, dword [esp + 0x9c]
call sub.msvcrt.dll__errno
xor ecx, ecx
and dword [esp + 0x90], 0x6000
mov eax, dword [eax]
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x54], 0xfffffffd
mov word [esp + 0x58], cx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x90]
mov word [esp + 0x60], si
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 0x4b9bcb
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x4b9bd8
call fcn.004bdea0
and eax, 1
neg eax
add eax, 3
mov dword [esp + 0x6c], eax
lea esi, [esi]
movzx eax, word [ebx]
lea ebp, [ebx + 2]
mov edi, ebp
test eax, eax
je 0x4b9c80
cmp eax, 0x25
jne 0x4b9c90
mov eax, dword [esp + 0x90]
xor ecx, ecx
movzx edx, word [ebx + 2]
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c]
test dx, dx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
je 0x4b9c68
lea eax, [edx - 0x20]
movzx esi, dx
cmp ax, 0x5a
lea ebx, [edi + 2]
ja case.0x4b9c45.1
movzx eax, ax
jmp dword [eax*4 + 0x558eb0]
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x10], 0
test dx, dx
jne 0x4b9c2f
mov ebx, edi
movzx eax, word [ebx]
lea ebp, [ebx + 2]
mov edi, ebp
test eax, eax
jne 0x4b9bf0
lea esi, [esi]
mov eax, dword [esp + 0x64]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x44]
mov ebx, ebp
call fcn.004b8610
jmp 0x4b9be0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
sub edx, 2
cmp edx, 1
jbe case.0x4b9c45.51
mov esi, dword [eax]
add dword [esp + 0xa0], 4
test esi, esi
je 0x4ba02d
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x44]
mov eax, esi
call fcn.004b8750
jmp 0x4b9be0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x4ba0fa
mov eax, dword [eax]
lea ecx, [esp + 0x44]
mov edx, 1
add dword [esp + 0xa0], 4
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
call fcn.004b8750
jmp 0x4b9be0
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4ba143
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b9620
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4ba0d5
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b90c0
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
or dword [esp + 0x48], 0x80
cmp dword [esp + 0x10], 3
mov eax, dword [esp + 0xa0]
je 0x4ba3f0
cmp dword [esp + 0x10], 2
je 0x4ba4ae
lea ecx, [eax + 4]
mov eax, dword [eax]
cdq
cmp dword [esp + 0x10], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
je 0x4ba51d
cmp dword [esp + 0x10], 5
mov dword [esp + 0xa0], ecx
je 0x4ba567
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x38], ecx
sar ecx, 0x1f
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x44]
call fcn.004b8d30
jmp 0x4b9be0
cmp dword [esp + 0x10], 3
mov eax, dword [esp + 0xa0]
je 0x4ba413
cmp dword [esp + 0x10], 2
je 0x4ba4cf
lea ecx, [eax + 4]
mov eax, dword [eax]
xor edx, edx
cmp dword [esp + 0x10], 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
je 0x4ba537
cmp dword [esp + 0x10], 5
mov dword [esp + 0xa0], ecx
je 0x4ba598
cmp esi, 0x75
lea ecx, [esp + 0x44]
je 0x4b9dfb
mov dword [esp], ecx
mov ecx, edx
mov edx, eax
mov eax, esi
call fcn.004b92f0
jmp 0x4b9be0
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
or dword [esp + 0x48], 4
jmp 0x4b9c63
movzx edx, word [edi + 2]
cmp dx, 0x36
je 0x4ba3b1
cmp dx, 0x33
je 0x4ba46a
mov dword [esp + 0x10], 0
mov ecx, 4
mov edi, ebx
jmp 0x4b9c63
test ecx, ecx
jne 0x4b9ec6
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x48], eax
je 0x4ba4f1
mov eax, dword [esp + 0xa0]
xor edx, edx
mov ecx, edx
lea esi, [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], eax
mov edx, eax
lea eax, [esp + 0x44]
mov dword [esp], eax
mov eax, 0x78
call fcn.004b92f0
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
cmp dword [esp + 0x10], 5
mov eax, dword [esp + 0xa0]
je 0x4ba393
cmp dword [esp + 0x10], 1
mov eax, dword [eax]
mov edx, dword [esp + 0x64]
je 0x4ba495
cmp dword [esp + 0x10], 2
je 0x4ba505
cmp dword [esp + 0x10], 3
mov dword [eax], edx
je 0x4ba57a
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9be0
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x10], 3
jmp 0x4b9c63
movzx edx, word [edi + 2]
cmp dx, 0x68
je 0x4ba378
mov dword [esp + 0x10], 1
mov ecx, 4
mov edi, ebx
jmp 0x4b9c63
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4ba075
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b9170
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4ba0a5
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b8c50
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov esi, eax
jne 0x4b9cc9
mov edx, 6
mov esi, str._null_
jmp 0x4b9cd3
movzx edx, word [edi + 2]
cmp dx, 0x6c
je 0x4ba3d5
mov dword [esp + 0x10], 2
mov ecx, 4
mov edi, ebx
jmp 0x4b9c63
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9fbc
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b9170
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9ffa
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b8c50
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9d7a
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b90c0
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x44]
mov edx, 1
lea esi, [eax + 4]
mov eax, dword [eax]
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
call fcn.004b8670
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9d41
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b9620
mov dword [esp + 0xa0], esi
jmp 0x4b9be0
test ecx, ecx
je 0x4ba348
cmp ecx, 4
je 0x4ba5e9
sub edx, 0x30
cmp dx, 9
ja 0x4ba5e9
test ecx, ecx
jne 0x4ba338
mov ecx, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ba1ae
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
js 0x4ba456
lea eax, [eax + eax*4]
lea eax, [esi + eax*2 - 0x30]
mov esi, dword [esp + 0x14]
mov dword [esi], eax
movzx edx, word [edi + 2]
mov edi, ebx
jmp 0x4b9c63
cmp ecx, 1
jbe 0x4ba436
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
jmp 0x4b9c63
test ecx, ecx
jne 0x4ba1ae
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x400
jmp 0x4b9c63
test ecx, ecx
jne 0x4ba1ae
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x100
jmp 0x4b9c63
test ecx, ecx
jne 0x4ba1ae
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x800
jmp 0x4b9c63
test ecx, ecx
jne 0x4ba1ae
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x40
jmp 0x4b9c63
test ecx, ecx
jne 0x4ba1ae
mov dword [esp + 0x1c], ecx
lea esi, [esp + 0x30]
or dword [esp + 0x48], 0x1000
mov dword [esp + 0x30], 0
call sub.msvcrt.dll_localeconv
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
lea eax, [esp + 0x2e]
mov dword [esp], eax
call fcn.004ae240
mov ecx, dword [esp + 0x1c]
test eax, eax
jle 0x4ba296
movzx edx, word [esp + 0x2e]
mov word [esp + 0x60], dx
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [esp + 0x5c], eax
jmp 0x4b9c63
lea edx, [esp + 0x44]
mov eax, esi
call fcn.004b8610
jmp 0x4b9be0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4ba1c9
test ecx, 0xfffffffd
jne 0x4ba360
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x14]
lea esi, [eax + 4]
mov eax, dword [eax]
test eax, eax
mov dword [edx], eax
js 0x4ba552
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], 0
jmp 0x4b9c63
mov eax, dword [esp + 0xa0]
mov esi, dword [eax]
lea edi, [eax + 4]
mov eax, 0x558e84
test esi, esi
cmove esi, eax
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x44]
mov edx, eax
mov eax, esi
call fcn.004b8670
mov dword [esp + 0xa0], edi
jmp 0x4b9be0
cmp ecx, 2
mov eax, 3
cmove ecx, eax
jmp 0x4ba18b
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x200
jmp 0x4b9c63
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x14], 0
jmp 0x4b9c63
lea ebx, [edi + 4]
movzx edx, word [edi + 4]
mov ecx, 4
mov dword [esp + 0x10], 5
mov edi, ebx
jmp 0x4b9c63
mov edx, dword [eax]
mov eax, dword [esp + 0x64]
mov byte [edx], al
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9be0
cmp word [edi + 4], 0x34
je 0x4ba5ac
mov edx, 0x36
mov ecx, 4
mov dword [esp + 0x10], 0
mov edi, ebx
jmp 0x4b9c63
lea ebx, [edi + 4]
movzx edx, word [edi + 4]
mov ecx, 4
mov dword [esp + 0x10], 3
mov edi, ebx
jmp 0x4b9c63
mov esi, dword [esp + 0xa0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esi, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], esi
jmp 0x4b9de7
mov ecx, dword [esp + 0xa0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add ecx, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], ecx
jmp 0x4b9e4e
lea eax, [esp + 0x50]
movzx edx, word [edi + 2]
mov ecx, 2
mov dword [esp + 0x50], 0
mov edi, ebx
mov dword [esp + 0x14], eax
jmp 0x4b9c63
mov eax, dword [esp + 0x14]
sub esi, 0x30
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [eax], esi
jmp 0x4b9c63
cmp word [edi + 4], 0x32
mov edx, 0x33
jne 0x4b9e9d
lea ebx, [edi + 6]
movzx edx, word [edi + 6]
mov ecx, 4
mov dword [esp + 0x10], 2
mov edi, ebx
jmp 0x4b9c63
mov word [eax], dx
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9be0
mov eax, dword [eax]
mov esi, dword [esp + 0xa0]
cdq
add esi, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0xa0], esi
jmp 0x4b9de7
mov ecx, dword [esp + 0xa0]
xor edx, edx
mov eax, dword [eax]
mov dword [esp + 0x34], edx
add ecx, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], ecx
jmp 0x4b9e4e
or ah, 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 8
jmp 0x4b9ec6
mov dword [eax], edx
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9be0
movsx eax, word [esp + 0x30]
mov dword [esp + 0xa0], ecx
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b9de7
movzx eax, word [esp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x30], eax
jmp 0x4b9e4e
test ecx, ecx
jne 0x4ba5c7
or dword [esp + 0x48], 0x400
neg dword [esp + 0x4c]
jmp 0x4ba2e7
movsx eax, byte [esp + 0x30]
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b9de7
mov esi, edx
sar esi, 0x1f
mov dword [eax + 4], esi
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9be0
movzx eax, byte [esp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
jmp 0x4b9e4e
lea ebx, [edi + 6]
movzx edx, word [edi + 6]
mov ecx, 4
mov dword [esp + 0x10], 3
mov edi, ebx
jmp 0x4b9c63
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], 0
jmp 0x4b9c63
lea edx, [esp + 0x44]
mov eax, 0x25
mov ebx, ebp
call fcn.004b8610
jmp 0x4b9be0