Function at 0x4b97c0
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 0x4b985b
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x4b9868
call fcn.004bdb30
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 0x4b9910
cmp eax, 0x25
jne 0x4b9920
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 0x4b98f8
lea eax, [edx - 0x20]
movzx esi, dx
cmp ax, 0x5a
lea ebx, [edi + 2]
ja case.0x4b98d5.1
movzx eax, ax
jmp dword [eax*4 + 0x558e90]
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x10], 0
test dx, dx
jne 0x4b98bf
mov ebx, edi
movzx eax, word [ebx]
lea ebp, [ebx + 2]
mov edi, ebp
test eax, eax
jne 0x4b9880
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.004b82a0
jmp 0x4b9870
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
sub edx, 2
cmp edx, 1
jbe case.0x4b98d5.51
mov esi, dword [eax]
add dword [esp + 0xa0], 4
test esi, esi
je 0x4b9cbd
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x44]
mov eax, esi
call fcn.004b83e0
jmp 0x4b9870
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x4b9d8a
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.004b83e0
jmp 0x4b9870
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b9dd3
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b92b0
mov dword [esp + 0xa0], esi
jmp 0x4b9870
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b9d65
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b8d50
mov dword [esp + 0xa0], esi
jmp 0x4b9870
or dword [esp + 0x48], 0x80
cmp dword [esp + 0x10], 3
mov eax, dword [esp + 0xa0]
je 0x4ba080
cmp dword [esp + 0x10], 2
je 0x4ba13e
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 0x4ba1ad
cmp dword [esp + 0x10], 5
mov dword [esp + 0xa0], ecx
je 0x4ba1f7
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.004b89c0
jmp 0x4b9870
cmp dword [esp + 0x10], 3
mov eax, dword [esp + 0xa0]
je 0x4ba0a3
cmp dword [esp + 0x10], 2
je 0x4ba15f
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 0x4ba1c7
cmp dword [esp + 0x10], 5
mov dword [esp + 0xa0], ecx
je 0x4ba228
cmp esi, 0x75
lea ecx, [esp + 0x44]
je 0x4b9a8b
mov dword [esp], ecx
mov ecx, edx
mov edx, eax
mov eax, esi
call fcn.004b8f80
jmp 0x4b9870
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
or dword [esp + 0x48], 4
jmp 0x4b98f3
movzx edx, word [edi + 2]
cmp dx, 0x36
je 0x4ba041
cmp dx, 0x33
je 0x4ba0fa
mov dword [esp + 0x10], 0
mov ecx, 4
mov edi, ebx
jmp 0x4b98f3
test ecx, ecx
jne 0x4b9b56
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x48], eax
je 0x4ba181
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.004b8f80
mov dword [esp + 0xa0], esi
jmp 0x4b9870
cmp dword [esp + 0x10], 5
mov eax, dword [esp + 0xa0]
je 0x4ba023
cmp dword [esp + 0x10], 1
mov eax, dword [eax]
mov edx, dword [esp + 0x64]
je 0x4ba125
cmp dword [esp + 0x10], 2
je 0x4ba195
cmp dword [esp + 0x10], 3
mov dword [eax], edx
je 0x4ba20a
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9870
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x10], 3
jmp 0x4b98f3
movzx edx, word [edi + 2]
cmp dx, 0x68
je 0x4ba008
mov dword [esp + 0x10], 1
mov ecx, 4
mov edi, ebx
jmp 0x4b98f3
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b9d05
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b8e00
mov dword [esp + 0xa0], esi
jmp 0x4b9870
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b9d35
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b88e0
mov dword [esp + 0xa0], esi
jmp 0x4b9870
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov esi, eax
jne 0x4b9959
mov edx, 6
mov esi, str._null_
jmp 0x4b9963
movzx edx, word [edi + 2]
cmp dx, 0x6c
je 0x4ba065
mov dword [esp + 0x10], 2
mov ecx, 4
mov edi, ebx
jmp 0x4b98f3
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9c4c
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b8e00
mov dword [esp + 0xa0], esi
jmp 0x4b9870
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9c8a
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b88e0
mov dword [esp + 0xa0], esi
jmp 0x4b9870
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b9a0a
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b8d50
mov dword [esp + 0xa0], esi
jmp 0x4b9870
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.004b8300
mov dword [esp + 0xa0], esi
jmp 0x4b9870
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b99d1
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b92b0
mov dword [esp + 0xa0], esi
jmp 0x4b9870
test ecx, ecx
je 0x4b9fd8
cmp ecx, 4
je 0x4ba279
sub edx, 0x30
cmp dx, 9
ja 0x4ba279
test ecx, ecx
jne 0x4b9fc8
mov ecx, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b9e3e
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
js 0x4ba0e6
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 0x4b98f3
cmp ecx, 1
jbe 0x4ba0c6
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
jmp 0x4b98f3
test ecx, ecx
jne 0x4b9e3e
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x400
jmp 0x4b98f3
test ecx, ecx
jne 0x4b9e3e
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x100
jmp 0x4b98f3
test ecx, ecx
jne 0x4b9e3e
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x800
jmp 0x4b98f3
test ecx, ecx
jne 0x4b9e3e
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x40
jmp 0x4b98f3
test ecx, ecx
jne 0x4b9e3e
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.004aded0
mov ecx, dword [esp + 0x1c]
test eax, eax
jle 0x4b9f26
movzx edx, word [esp + 0x2e]
mov word [esp + 0x60], dx
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [esp + 0x5c], eax
jmp 0x4b98f3
lea edx, [esp + 0x44]
mov eax, esi
call fcn.004b82a0
jmp 0x4b9870
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4b9e59
test ecx, 0xfffffffd
jne 0x4b9ff0
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 0x4ba1e2
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], 0
jmp 0x4b98f3
mov eax, dword [esp + 0xa0]
mov esi, dword [eax]
lea edi, [eax + 4]
mov eax, 0x558e64
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.004b8300
mov dword [esp + 0xa0], edi
jmp 0x4b9870
cmp ecx, 2
mov eax, 3
cmove ecx, eax
jmp 0x4b9e1b
movzx edx, word [edi + 2]
mov edi, ebx
or dword [esp + 0x48], 0x200
jmp 0x4b98f3
movzx edx, word [edi + 2]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x14], 0
jmp 0x4b98f3
lea ebx, [edi + 4]
movzx edx, word [edi + 4]
mov ecx, 4
mov dword [esp + 0x10], 5
mov edi, ebx
jmp 0x4b98f3
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 0x4b9870
cmp word [edi + 4], 0x34
je 0x4ba23c
mov edx, 0x36
mov ecx, 4
mov dword [esp + 0x10], 0
mov edi, ebx
jmp 0x4b98f3
lea ebx, [edi + 4]
movzx edx, word [edi + 4]
mov ecx, 4
mov dword [esp + 0x10], 3
mov edi, ebx
jmp 0x4b98f3
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 0x4b9a77
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 0x4b9ade
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 0x4b98f3
mov eax, dword [esp + 0x14]
sub esi, 0x30
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [eax], esi
jmp 0x4b98f3
cmp word [edi + 4], 0x32
mov edx, 0x33
jne 0x4b9b2d
lea ebx, [edi + 6]
movzx edx, word [edi + 6]
mov ecx, 4
mov dword [esp + 0x10], 2
mov edi, ebx
jmp 0x4b98f3
mov word [eax], dx
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9870
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 0x4b9a77
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 0x4b9ade
or ah, 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 8
jmp 0x4b9b56
mov dword [eax], edx
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b9870
movsx eax, word [esp + 0x30]
mov dword [esp + 0xa0], ecx
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b9a77
movzx eax, word [esp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x30], eax
jmp 0x4b9ade
test ecx, ecx
jne 0x4ba257
or dword [esp + 0x48], 0x400
neg dword [esp + 0x4c]
jmp 0x4b9f77
movsx eax, byte [esp + 0x30]
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b9a77
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 0x4b9870
movzx eax, byte [esp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
jmp 0x4b9ade
lea ebx, [edi + 6]
movzx edx, word [edi + 6]
mov ecx, 4
mov dword [esp + 0x10], 3
mov edi, ebx
jmp 0x4b98f3
movzx edx, word [edi + 2]
mov edi, ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], 0
jmp 0x4b98f3
lea edx, [esp + 0x44]
mov eax, 0x25
mov ebx, ebp
call fcn.004b82a0
jmp 0x4b9870