Function at 0x10055f50
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x10134af8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x10], eax
call fcn.10004a20
test eax, eax
jne 0x10055fa6
xor al, al
jmp 0x100561a1
lea ecx, [ebp + 0x30]
call fcn.10005050
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.10004b50
mov esi, eax
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x10055fc8
mov eax, dword [esi]
cmp word [eax], 0x40
mov ecx, edi
jne 0x10055fff
call fcn.10004a20
dec eax
lea ecx, [ebp + 0x18]
push eax
mov edx, edi
call fcn.10061f90
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.10004fd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10004a60
jmp 0x10056020
call fcn.10004b50
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x10056020
mov eax, esi
cmp edx, 8
jb 0x10056014
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.10004bc0
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.10104ad0
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.100062d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x1005609f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010358d
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.100062d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.10005290
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.10004bc0
push esi
call fcn.10103588
add esp, 4
jmp 0x100560b8
lea eax, [ebp + 0x48]
push eax
call fcn.10005290
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.10004bc0
push 0x1015e3f0
lea ecx, [ebp]
call fcn.100062e0
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.1000dd90
mov esi, eax
cmp esi, 0xffffffff
je 0x10056157
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.10061f20
add esp, 4
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.10004fd0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10004a60
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x10056153
lea ecx, [ebp + 0x30]
call fcn.10004a20
mov edx, eax
lea ecx, [ebp]
sub edx, esi
call fcn.10004a20
sub edx, eax
lea ecx, [ebp + 0x18]
push edx
lea edx, [ebp + 0x30]
call fcn.10061f90
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.100062d0
xor edx, edx
mov ecx, eax
call fcn.10061910
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10004a60
mov bl, 1
jmp 0x10056184
lea ecx, [ebp + 0x30]
call fcn.10004b50
cmp ebx, eax
je 0x1005617d
call fcn.10004b50
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10056172
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.10004bc0
cmp dword [ebp - 0x10], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10004a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.10004a60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.10102ce9
lea esp, [ebp + 0x254]
pop ebp
ret