Function at 0x100010e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100123e8
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x1001b010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x850], edx
mov dword [ebp - 0x84c], ecx
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x848], 0
push eax
push str.ROCKSTAR_CRED
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100014b7
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x828], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001167
sub ecx, edx
lea eax, [ebp - 0x810]
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.100017e0
push ecx
lea eax, [ebp - 0x844]
mov dword [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], 0
mov dword [ebp - 0x848], 1
mov dword [ebp - 0x844], 0xffffffff
call fcn.10001560
mov byte [ebp - 4], 2
xor ecx, ecx
mov edx, dword [ebp - 0x85c]
nop dword [eax]
movzx eax, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [edx + eax*4], ecx
inc ecx
cmp ecx, 0x40
jl 0x100011e0
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x828]
xor esi, esi
lea edi, [ebp - 0x828]
cmp dword [ebp - 0x814], 0x10
cmovae ecx, dword [ebp - 0x828]
cmovae edi, dword [ebp - 0x828]
lea ebx, [esi - 8]
add eax, ecx
mov dword [ebp - 0x844], eax
cmp edi, eax
je 0x1000126d
nop dword [eax]
movsx ax, byte [edi]
movzx eax, ax
mov eax, dword [edx + eax*4]
cmp eax, 0xffffffff
je 0x1000126d
shl esi, 6
add esi, eax
add ebx, 6
js 0x10001264
mov ecx, ebx
mov eax, esi
sar eax, cl
lea ecx, [ebp - 0x840]
push eax
call fcn.100015c0
mov edx, dword [ebp - 0x85c]
sub ebx, 8
inc edi
cmp edi, dword [ebp - 0x844]
jne 0x10001230
mov byte [ebp - 4], 1
test edx, edx
je 0x100012af
mov eax, dword [ebp - 0x854]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x100012a5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100014d3
push ecx
push edx
call fcn.10005d4f
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x814]
cmp eax, 0x10
jb 0x100012ef
mov edx, dword [ebp - 0x828]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100012e5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100014d8
push ecx
push edx
call fcn.10005d4f
add esp, 8
lea ecx, [ebp - 0x840]
call fcn.10001010
mov ebx, dword [ebp - 0x82c]
lea eax, [ebp - 0x840]
mov esi, dword [ebp - 0x840]
cmp ebx, 0x10
mov ecx, dword [ebp - 0x830]
cmovae eax, esi
mov dword [ebp - 0x844], eax
test ecx, ecx
je 0x1000133c
push ecx
push 0x3a
push eax
call fcn.10012300
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000133c
sub edi, dword [ebp - 0x844]
jmp 0x1000133f
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x1000148d
cmp dword [ebp - 0x830], edi
lea eax, [ebp - 0x840]
mov edx, edi
mov dword [ebp - 0x818], 0
cmovb edx, dword [ebp - 0x830]
lea ecx, [ebp - 0x828]
cmp ebx, 0x10
mov dword [ebp - 0x814], 0xf
push edx
cmovae eax, esi
mov byte [ebp - 0x828], 0
push eax
call fcn.100017e0
mov ecx, dword [ebp - 0x84c]
lea eax, [ebp - 0x828]
push eax
mov dword [ebp - 0x848], 3
call fcn.10001760
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x100013e1
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100013d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100014dd
push edx
push ecx
call fcn.10005d4f
add esp, 8
mov eax, dword [ebp - 0x830]
inc edi
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
cmp eax, edi
jb 0x100014e2
sub eax, edi
lea ecx, [ebp - 0x828]
or edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [ebp - 0x82c], 0x10
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push edx
add eax, edi
push eax
call fcn.100017e0
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x828]
push eax
call fcn.10001760
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x10001481
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001477
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100014e7
push edx
push ecx
call fcn.10005d4f
add esp, 8
mov esi, dword [ebp - 0x840]
mov ebx, dword [ebp - 0x82c]
cmp ebx, 0x10
jb 0x100014b7
inc ebx
mov eax, esi
cmp ebx, 0x1000
jb 0x100014ad
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100014ec
push ebx
push esi
call fcn.10005d4f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005d0e
mov esp, ebp
pop ebp
ret
call fcn.10009ac9
call fcn.10009ac9
call fcn.10009ac9
call fcn.10001910
call fcn.10009ac9
call fcn.10009ac9
int3