Function at 0x10054d70
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x240]
sub esp, 0x240
push 0xffffffffffffffff
push 0x10130d70
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp + 0x23c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x248]
lea ecx, [ebp + 0x18]
mov ebx, dword [ebp + 0x24c]
push eax
mov dword [ebp - 0x14], ebx
call fcn.10004af0
mov dword [ebp - 4], 0
mov edx, 0x10157e64
lea ecx, [ebp + 0x18]
call fcn.10056d10
mov edx, 0x10157e64
lea ecx, [ebp + 0x18]
call fcn.10056da0
lea ecx, [ebp + 0x18]
call fcn.10005620
test al, al
je 0x10054df5
xor bl, bl
jmp 0x10055053
push 0x208
lea eax, [ebp + 0x34]
push 0
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp + 0x34]
lea ecx, [ebp + 0x18]
push 0x104
push eax
call fcn.10006600
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10054e3d
lea eax, [ebp + 0x34]
push eax
call fcn.100058f0
add esp, 4
lea ecx, [ebp + 0x18]
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.10004c40
lea ecx, [ebp + 0x18]
call fcn.10059790
lea ecx, [ebp + 0x18]
test al, al
je 0x10054e76
call fcn.10004bd0
cmp ebx, eax
je 0x10054e6f
call fcn.10004bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10054e64
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.10004c40
mov bl, 1
jmp 0x10055053
call fcn.10004bd0
mov edi, eax
mov dword [ebp - 0x10], edi
cmp dword [edi + 0x14], 8
jb 0x10054e8b
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov esi, dword [edi + 0x10]
mov dword [ebp + 0x30], 0x22
test esi, esi
je 0x10054f2c
lea ecx, [ebp + 0x30]
mov edx, esi
push ecx
mov ecx, eax
call fcn.1000e490
add esp, 4
test eax, eax
je 0x10054f2c
sub eax, dword [ebp - 0x10]
cmp eax, 2
jae 0x10054f2c
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x10], edi
jb 0x10054ec9
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x30], 0x22
cmp esi, 1
jbe 0x10054f2c
lea ecx, [ebp + 0x30]
push ecx
lea edx, [esi - 1]
lea ecx, [eax + 2]
call fcn.1000e490
add esp, 4
test eax, eax
je 0x10054f2c
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x10054f2c
dec eax
lea ecx, [ebp + 0x18]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.1000e140
mov byte [ebp - 4], 1
mov ecx, ebx
push eax
call fcn.10005630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10004ae0
mov ecx, ebx
call fcn.10059790
test al, al
jne 0x10054e6f
lea ecx, [ebp]
xor esi, esi
call fcn.100056b0
mov byte [ebp - 4], 2
mov dword [ebp + 0x30], 0x20
cmp dword [edi + 0x14], 8
lea ebx, [esi + 1]
mov eax, edi
mov dword [ebp - 0x10], edi
jb 0x10054f54
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 0x10]
cmp ebx, edx
jae 0x10055045
lea ecx, [ebp + 0x30]
sub edx, ebx
push ecx
lea ecx, [eax + ebx*2]
call fcn.1000e490
mov esi, eax
add esp, 4
test esi, esi
je 0x10055045
sub esi, dword [ebp - 0x10]
sar esi, 1
cmp esi, 0xffffffff
je 0x10055045
cmp esi, ebx
je 0x10054f41
push esi
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x18]
call fcn.1000e140
mov byte [ebp - 4], 3
lea ecx, [ebp]
push eax
call fcn.10005630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.10004ae0
lea ecx, [ebp]
call fcn.1005e430
test al, al
jne 0x10055018
push 0x1015362c
call fcn.100058f0
add esp, 4
lea ecx, [ebp]
push eax
push 0x1015362c
call fcn.10005880
lea ecx, [ebp]
call fcn.1005e430
test al, al
je 0x10054f41
lea ecx, [ebp]
call fcn.10004bd0
mov esi, dword [ebp - 0x14]
cmp esi, eax
je 0x10055014
call fcn.10004bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10055009
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10004c40
mov bl, 1
jmp 0x10055047
lea ecx, [ebp]
call fcn.10004bd0
mov esi, dword [ebp - 0x14]
cmp esi, eax
je 0x10055014
call fcn.10004bd0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10055036
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10004c40
mov bl, 1
jmp 0x10055047
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.10004ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10004ae0
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 + 0x23c]
xor ecx, ebp
call fcn.100fc1a9
lea esp, [ebp + 0x240]
pop ebp
ret 8