Function at 0x4b7a60
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], 0x558cf9
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 0x4b7afb
movsx edx, byte [eax]
mov eax, 2
sub edx, 0x30
cmp edx, 2
jbe 0x4b7b08
call fcn.004bdea0
and eax, 1
neg eax
add eax, 3
mov dword [esp + 0x6c], eax
lea esi, [esi]
movsx eax, byte [ebx]
lea ebp, [ebx + 1]
mov edi, ebp
test eax, eax
je 0x4b7bb0
cmp eax, 0x25
jne 0x4b7bc0
mov eax, dword [esp + 0x90]
xor ecx, ecx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0x48], eax
movzx edx, byte [ebx + 1]
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], eax
test dl, dl
je 0x4b7b97
lea eax, [edx - 0x20]
movsx esi, dl
cmp al, 0x5a
lea ebx, [edi + 1]
ja case.0x4b7b72.1
movzx eax, al
jmp dword [eax*4 + 0x558d10]
movzx edx, byte [edi + 1]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x10], 0
test dl, dl
jne 0x4b7b5e
mov ebx, edi
movsx eax, byte [ebx]
lea ebp, [ebx + 1]
mov edi, ebp
test eax, eax
jne 0x4b7b20
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.004b6530
jmp 0x4b7b10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
sub edx, 2
cmp edx, 1
jbe case.0x4b7b72.51
mov esi, dword [eax]
add dword [esp + 0xa0], 4
test esi, esi
je 0x4b7f56
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x44]
mov eax, esi
call fcn.004b6680
jmp 0x4b7b10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x4b801e
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.004b6680
jmp 0x4b7b10
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b8063
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b7550
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b7ff9
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b6ff0
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
or dword [esp + 0x48], 0x80
cmp dword [esp + 0x10], 3
mov eax, dword [esp + 0xa0]
je 0x4b82ff
cmp dword [esp + 0x10], 2
je 0x4b83bc
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 0x4b842b
cmp dword [esp + 0x10], 5
mov dword [esp + 0xa0], ecx
je 0x4b8475
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.004b6c60
jmp 0x4b7b10
cmp dword [esp + 0x10], 3
mov eax, dword [esp + 0xa0]
je 0x4b8322
cmp dword [esp + 0x10], 2
je 0x4b83dd
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 0x4b8445
cmp dword [esp + 0x10], 5
mov dword [esp + 0xa0], ecx
je 0x4b84a6
cmp esi, 0x75
lea ecx, [esp + 0x44]
je 0x4b7d2b
mov dword [esp], ecx
mov ecx, edx
mov edx, eax
mov eax, esi
call fcn.004b7220
jmp 0x4b7b10
or dword [esp + 0x48], 4
mov ecx, 4
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
movzx edx, byte [edi + 1]
cmp dl, 0x36
je 0x4b82c1
cmp dl, 0x33
je 0x4b8379
mov dword [esp + 0x10], 0
mov ecx, 4
mov edi, ebx
jmp 0x4b7b93
test ecx, ecx
jne 0x4b7df5
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x48], eax
je 0x4b83ff
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.004b7220
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
cmp dword [esp + 0x10], 5
mov eax, dword [esp + 0xa0]
je 0x4b82a3
cmp dword [esp + 0x10], 1
mov eax, dword [eax]
mov edx, dword [esp + 0x64]
je 0x4b83a3
cmp dword [esp + 0x10], 2
je 0x4b8413
cmp dword [esp + 0x10], 3
mov dword [eax], edx
je 0x4b8488
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b7b10
movzx edx, byte [edi + 1]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x10], 3
jmp 0x4b7b93
movzx edx, byte [edi + 1]
cmp dl, 0x68
je 0x4b8288
mov dword [esp + 0x10], 1
mov ecx, 4
mov edi, ebx
jmp 0x4b7b93
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b7f99
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b70a0
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
mov eax, dword [esp + 0x48]
or eax, 0x20
test al, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
je 0x4b7fc9
fld xword [eax]
lea esi, [eax + 0xc]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b6b80
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov esi, eax
jne 0x4b7bf9
mov edx, 6
mov esi, 0x558cf2
jmp 0x4b7c03
movzx edx, byte [edi + 1]
cmp dl, 0x6c
je 0x4b82e4
mov dword [esp + 0x10], 2
mov ecx, 4
mov edi, ebx
jmp 0x4b7b93
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b7eeb
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b70a0
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b7f22
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b6b80
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b7caa
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b6ff0
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
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.004b6590
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
mov eax, dword [esp + 0x48]
test al, 4
mov eax, dword [esp + 0xa0]
jne 0x4b7c71
fld qword [eax]
lea esi, [eax + 8]
fstp xword [esp]
lea eax, [esp + 0x44]
call fcn.004b7550
mov dword [esp + 0xa0], esi
jmp 0x4b7b10
test ecx, ecx
je 0x4b8258
cmp ecx, 4
je 0x4b84f7
sub edx, 0x30
cmp dl, 9
ja 0x4b84f7
test ecx, ecx
jne 0x4b8248
mov ecx, 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b80cd
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
js 0x4b8365
lea eax, [eax + eax*4]
lea eax, [esi + eax*2 - 0x30]
mov esi, dword [esp + 0x14]
mov dword [esi], eax
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
cmp ecx, 1
jbe 0x4b8345
movzx edx, byte [edi + 1]
mov ecx, 4
mov edi, ebx
jmp 0x4b7b93
test ecx, ecx
jne 0x4b80cd
or dword [esp + 0x48], 0x400
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
test ecx, ecx
jne 0x4b80cd
or dword [esp + 0x48], 0x100
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
test ecx, ecx
jne 0x4b80cd
or dword [esp + 0x48], 0x800
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
test ecx, ecx
jne 0x4b80cd
or dword [esp + 0x48], 0x40
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
test ecx, ecx
jne 0x4b80cd
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 0x4b81a6
movzx edx, word [esp + 0x2e]
mov word [esp + 0x60], dx
mov dword [esp + 0x5c], eax
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
lea edx, [esp + 0x44]
mov eax, esi
call fcn.004b6530
jmp 0x4b7b10
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4b80e1
test ecx, 0xfffffffd
jne 0x4b8270
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 0x4b8460
movzx edx, byte [edi + 1]
mov edi, ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], 0
jmp 0x4b7b93
mov eax, dword [esp + 0xa0]
mov esi, dword [eax]
lea edi, [eax + 4]
mov eax, 0x558ce4
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.004b6590
mov dword [esp + 0xa0], edi
jmp 0x4b7b10
cmp ecx, 2
mov eax, 3
cmove ecx, eax
jmp 0x4b80aa
or dword [esp + 0x48], 0x200
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
movzx edx, byte [edi + 1]
mov ecx, 4
mov edi, ebx
mov dword [esp + 0x14], 0
jmp 0x4b7b93
lea ebx, [edi + 2]
movzx edx, byte [edi + 2]
mov ecx, 4
mov dword [esp + 0x10], 5
mov edi, ebx
jmp 0x4b7b93
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 0x4b7b10
cmp byte [edi + 2], 0x34
je 0x4b84ba
mov edx, 0x36
mov ecx, 4
mov dword [esp + 0x10], 0
mov edi, ebx
jmp 0x4b7b93
lea ebx, [edi + 2]
movzx edx, byte [edi + 2]
mov ecx, 4
mov dword [esp + 0x10], 3
mov edi, ebx
jmp 0x4b7b93
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 0x4b7d17
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 0x4b7d7e
lea eax, [esp + 0x50]
mov ecx, 2
mov dword [esp + 0x50], 0
movzx edx, byte [edi + 1]
mov edi, ebx
mov dword [esp + 0x14], eax
jmp 0x4b7b93
mov eax, dword [esp + 0x14]
sub esi, 0x30
mov dword [eax], esi
movzx edx, byte [edi + 1]
mov edi, ebx
jmp 0x4b7b93
cmp byte [edi + 2], 0x32
mov edx, 0x33
jne 0x4b7dcb
lea ebx, [edi + 3]
movzx edx, byte [edi + 3]
mov ecx, 4
mov dword [esp + 0x10], 2
mov edi, ebx
jmp 0x4b7b93
mov word [eax], dx
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b7b10
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 0x4b7d17
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 0x4b7d7e
or ah, 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 8
jmp 0x4b7df5
mov dword [eax], edx
mov eax, dword [esp + 0xa0]
add eax, 4
mov dword [esp + 0xa0], eax
jmp 0x4b7b10
movsx eax, word [esp + 0x30]
mov dword [esp + 0xa0], ecx
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b7d17
movzx eax, word [esp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x30], eax
jmp 0x4b7d7e
test ecx, ecx
jne 0x4b84d5
or dword [esp + 0x48], 0x400
neg dword [esp + 0x4c]
jmp 0x4b81f7
movsx eax, byte [esp + 0x30]
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b7d17
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 0x4b7b10
movzx eax, byte [esp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
jmp 0x4b7d7e
lea ebx, [edi + 3]
movzx edx, byte [edi + 3]
mov ecx, 4
mov dword [esp + 0x10], 3
mov edi, ebx
jmp 0x4b7b93
mov dword [esp + 0x50], 0xffffffff
movzx edx, byte [edi + 1]
mov edi, ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], 0
jmp 0x4b7b93
lea edx, [esp + 0x44]
mov eax, 0x25
mov ebx, ebp
call fcn.004b6530
jmp 0x4b7b10