Function at 0x559ec8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040529c
xor eax, eax
push ebp
push 0x55a199
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.00404d54
xor ebx, ebx
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040500c
je 0x55a158
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00512614
test al, al
jne 0x55a090
mov dl, 1
mov eax, dword [0x5118f4]
call fcn.00512498
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00404ee4
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov ax, 0x2c
call fcn.005126a4
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.005122e0
xor eax, eax
push ebp
push 0x559fc9
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x23c]
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.005122e0
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
call fcn.004048b8
mov eax, dword [ebp - 0x238]
call fcn.00409618
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x559fe1
mov eax, dword [ebp - 0x14]
call fcn.004037f0
lea eax, [ebp - 0x232]
mov ecx, 0x20a
xor edx, edx
call fcn.004030b0
push 0x20a
lea eax, [ebp - 0x232]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ee4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x55a02b
cmp dword [ebp - 0x28], 0
jbe 0x55a053
jmp 0x55a02d
jle 0x55a053
cmp dword [ebp - 0x24], 0
jne 0x55a03e
cmp dword [ebp - 0x28], 0x20a
jae 0x55a053
jmp 0x55a040
jge 0x55a053
lea eax, [ebp - 4]
lea edx, [ebp - 0x232]
mov ecx, 0x105
call fcn.00404eb8
mov al, byte [0x55a1a8]
push eax
lea eax, [ebp - 0x240]
push eax
xor ecx, ecx
mov edx, 0x55a1b0
mov eax, dword [ebp - 4]
call fcn.00511a78
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 4]
call fcn.00404db4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00512614
test al, al
je 0x55a158
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x55a145
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24c]
mov edx, dword [ebp - 4]
call fcn.004048b8
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00409d94
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00408ef0
mov eax, dword [ebp - 0x244]
mov edx, 0x55a1bc
call fcn.00404a34
jne 0x55a0f0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404d90
movzx edx, bx
mov eax, dword [ebp - 4]
call fcn.00559d54
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x55a10e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55a158
mov dl, 1
mov eax, dword [0x41aecc]
call fcn.004037c0
mov ebx, eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004eb100
test eax, eax
jle 0x55a134
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e9c48
mov eax, ebx
call fcn.004037f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55a14f
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_DestroyIcon
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a1a0
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.00404640
lea eax, [ebp - 0x240]
mov edx, 2
call fcn.00404d6c
lea eax, [ebp - 0x238]
call fcn.0040461c
lea eax, [ebp - 4]
call fcn.00404d54
ret