Function at 0x128dce80
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x12988d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
xor ebx, ebx
xor esi, esi
call fcn.1290df60
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], bx
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x85c]
push 0x103
stosw word es:[edi], ax
lea eax, [esp + 0x234]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
mov dword [esp + 0x860], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.128d4260
add esp, 0x10
test eax, eax
je 0x128dd1aa
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov eax, 0x12992bf0
cmp edx, dword [eax]
je 0x128dcf1a
add eax, 0x28
inc ecx
cmp eax, 0x12992fb0
jl 0x128dcf09
jmp 0x128dcf3b
lea eax, [ecx + ecx*4]
mov eax, dword [eax*8 + 0x12992c10]
cmp eax, ebx
je 0x128dcf3b
lea ecx, [esp + 0x18]
push ecx
push 0x129ac500
push eax
call fcn.12914a20
add esp, 0xc
cmp dword [esp + 0x1c], ebx
je 0x128dd1aa
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x43a]
mov word [esp + 0x438], bx
rep stosd dword es:[edi], eax
push ebp
lea edx, [esp + 0x43c]
push 0x104
push edx
push 0x129ad1cc
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esp + 0x20]
xor ebp, ebp
cmp eax, ebx
jle 0x128dd1a4
lea eax, [esp + 0x18]
push ebp
push eax
lea ecx, [esp + 0x24]
call fcn.128dd1e0
mov esi, dword [eax]
lea ecx, [esp + 0x18]
call fcn.12908640
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
push 0xa
push str._userpath_
push esi
stosw word es:[edi], ax
call fcn.12922f4a
add esp, 0xc
test eax, eax
jne 0x128dd016
add esi, 0x14
push esi
call fcn.12922b80
lea ecx, [esp + 0x440]
mov edi, eax
push ecx
call fcn.12922b80
add edi, eax
add esp, 8
cmp edi, 0x104
jae 0x128dd182
lea edx, [esp + 0x43c]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.12922cf0
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.12922cc6
add esp, 0x10
jmp 0x128dd182
push 9
push str._apppath_
push esi
call fcn.12922f4a
add esp, 0xc
test eax, eax
jne 0x128dd08e
lea edx, [esp + 0x234]
push 0x5c
push edx
call fcn.12922b40
add esp, 8
cmp eax, ebx
je 0x128dd182
lea ecx, [esp + 0x234]
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x128dd182
add esi, 0x12
push esi
call fcn.12922b80
add eax, edi
add esp, 4
cmp eax, 0x104
jae 0x128dd182
lea edx, [esp + 0x234]
push edi
lea eax, [esp + 0x30]
push edx
push eax
call fcn.12922d15
lea ecx, [esp + 0x38]
push esi
push ecx
jmp 0x128dd17a
push 0xb
push str._appuppath_
push esi
call fcn.12922f4a
add esp, 0xc
test eax, eax
jne 0x128dd182
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push edx
push str.__appuppath___d
push esi
call fcn.12922eeb
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
jl 0x128dd182
cmp eax, 9
jg 0x128dd182
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x646]
mov word [esp + 0x644], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x234]
push 0x104
lea ecx, [esp + 0x648]
push eax
push ecx
call fcn.12922d15
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
xor edi, edi
inc edx
test edx, edx
jle 0x128dd13d
lea eax, [esp + 0x644]
push 0x5c
push eax
call fcn.12922b40
add esp, 8
cmp eax, ebx
je 0x128dd182
mov word [eax], bx
mov ecx, dword [esp + 0x10]
inc edi
inc ecx
cmp edi, ecx
jl 0x128dd11a
lea edx, [esp + 0x644]
sub eax, edx
sar eax, 1
mov edi, eax
je 0x128dd182
add esi, 0x18
push esi
call fcn.12922b80
add eax, edi
add esp, 4
cmp eax, 0x104
jae 0x128dd182
lea eax, [esp + 0x234]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.12922d15
lea edx, [esp + 0x38]
push esi
push edx
call fcn.12922cc6
add esp, 0x14
mov ecx, dword [esp + 0x85c]
lea edx, [esp + 0x2c]
push edx
mov eax, dword [ecx + 4]
push eax
call fcn.1290e480
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x128dcf86
mov esi, 1
pop ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x850], 0xffffffff
call fcn.1290df70
mov ecx, dword [esp + 0x848]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x848
ret