Function at 0x561e94
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4b
push 0
push 0
dec ecx
jne 0x561e9d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406998
xor eax, eax
push ebp
push 0x5623b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x561eda
mov eax, ebx
xor edx, edx
call fcn.004069b0
jmp 0x56237a
push 0x104
lea eax, [ebp - 0x212]
push eax
lea eax, [ebp - 0x218]
mov edx, dword [ebp - 4]
call fcn.00406c2c
mov eax, dword [ebp - 0x218]
call fcn.00406710
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov eax, ebx
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406bb0
cmp dword [ebx], 0
jne 0x561f26
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004069b0
mov eax, dword [ebx]
cmp word [eax], 0x25
jne 0x562324
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046fb70
mov eax, dword [ebp - 0x21c]
push eax
lea edx, [ebp - 0x220]
mov eax, 0x5623cc
call fcn.0046fb70
mov eax, dword [ebp - 0x220]
pop edx
call fcn.004074cc
test eax, eax
jle 0x561fef
mov eax, ebx
xor edx, edx
call fcn.004069b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x561f91
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x561f91
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x561f9a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
sub esi, 0xf
jl 0x561fcb
inc esi
mov edi, 0xf
lea eax, [ebp - 0x224]
mov edx, dword [ebp - 4]
movzx edx, word [edx + edi*2 - 2]
call fcn.00406b1c
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.00406dc4
inc edi
dec esi
jne 0x561fa7
lea edx, [ebp - 0x228]
mov eax, 0x1c
call fcn.005619d4
mov edx, dword [ebp - 0x228]
mov ecx, dword [ebx]
mov eax, ebx
call fcn.00406e84
jmp 0x562324
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.0046fb70
mov eax, dword [ebp - 0x22c]
push eax
lea edx, [ebp - 0x230]
mov eax, 0x5623f8
call fcn.0046fb70
mov eax, dword [ebp - 0x230]
pop edx
call fcn.004074cc
test eax, eax
jle 0x5620dd
mov eax, ebx
xor edx, edx
call fcn.004069b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x56204e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x56204e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x562057
sub eax, 4
mov eax, dword [eax]
mov esi, eax
sub esi, 0x10
jl 0x562088
inc esi
mov edi, 0x10
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 4]
movzx edx, word [edx + edi*2 - 2]
call fcn.00406b1c
mov edx, dword [ebp - 0x234]
mov eax, ebx
call fcn.00406dc4
inc edi
dec esi
jne 0x562064
call fcn.005619ec
cmp eax, 6
jl 0x5620bd
push 0x104
lea eax, [ebp - 0x212]
push eax
push 0x562418
call sub.kernel32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 8]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406bb0
jmp 0x5620cc
lea ecx, [ebp - 8]
mov edx, 0x23
xor eax, eax
call fcn.0053d518
mov ecx, dword [ebx]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e84
jmp 0x562324
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0046fb70
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x23c]
mov eax, 0x562440
call fcn.0046fb70
mov eax, dword [ebp - 0x23c]
pop edx
call fcn.004074cc
test eax, eax
jle 0x56215c
mov eax, ebx
xor edx, edx
call fcn.004069b0
call fcn.005619ec
cmp eax, 6
jl 0x56212f
lea eax, [ebp - 8]
call fcn.00561b8c
jmp 0x56213e
lea ecx, [ebp - 8]
mov edx, 0x23
xor eax, eax
call fcn.0053d518
movzx eax, byte [0x562464]
push eax
push ebx
mov ecx, dword [ebp - 8]
mov edx, 0x562440
mov eax, dword [ebp - 4]
call fcn.00479824
jmp 0x562324
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.0046fb70
mov eax, dword [ebp - 0x240]
push eax
lea edx, [ebp - 0x244]
mov eax, 0x562474
call fcn.0046fb70
mov eax, dword [ebp - 0x244]
pop edx
call fcn.004074cc
test eax, eax
jle 0x562215
mov eax, ebx
xor edx, edx
call fcn.004069b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5621bb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5621bb
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x5621c4
sub eax, 4
mov eax, dword [eax]
mov esi, eax
sub esi, 0xe
jl 0x5621f5
inc esi
mov edi, 0xe
lea eax, [ebp - 0x248]
mov edx, dword [ebp - 4]
movzx edx, word [edx + edi*2 - 2]
call fcn.00406b1c
mov edx, dword [ebp - 0x248]
mov eax, ebx
call fcn.00406dc4
inc edi
dec esi
jne 0x5621d1
lea ecx, [ebp - 8]
mov edx, 0x23
xor eax, eax
call fcn.0053d518
mov ecx, dword [ebx]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e84
jmp 0x562324
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 4]
call fcn.0046fb70
mov eax, dword [ebp - 0x24c]
push eax
lea edx, [ebp - 0x250]
mov eax, 0x56249c
call fcn.0046fb70
mov eax, dword [ebp - 0x250]
pop edx
call fcn.004074cc
test eax, eax
jle 0x5622c7
mov eax, ebx
xor edx, edx
call fcn.004069b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x562270
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x562270
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x562279
sub eax, 4
mov eax, dword [eax]
mov esi, eax
sub esi, 0xc
jl 0x5622aa
inc esi
mov edi, 0xc
lea eax, [ebp - 0x254]
mov edx, dword [ebp - 4]
movzx edx, word [edx + edi*2 - 2]
call fcn.00406b1c
mov edx, dword [ebp - 0x254]
mov eax, ebx
call fcn.00406dc4
inc edi
dec esi
jne 0x562286
lea ecx, [ebp - 8]
mov edx, 5
xor eax, eax
call fcn.0053d518
mov ecx, dword [ebx]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e84
jmp 0x562324
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 4]
call fcn.0046fb70
mov eax, dword [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, 0x5624c0
call fcn.0046fb70
mov eax, dword [ebp - 0x25c]
pop edx
call fcn.004074cc
test eax, eax
jle 0x562324
lea ecx, [ebp - 8]
mov edx, 0xd
xor eax, eax
call fcn.0053d518
movzx eax, byte [0x562464]
push eax
push ebx
mov ecx, dword [ebp - 8]
mov edx, 0x5624c0
mov eax, dword [ebp - 4]
call fcn.00479824
mov edx, dword [ebx]
mov eax, 0x5624dc
call fcn.004074cc
test eax, eax
jle 0x56234e
lea edx, [ebp - 0x260]
mov eax, dword [ebx]
call fcn.00561d2c
mov edx, dword [ebp - 0x260]
mov eax, ebx
call fcn.004069b0
mov edx, dword [ebx]
mov eax, 0x5624ec
call fcn.004074cc
test eax, eax
jle 0x56237a
lea ecx, [ebp - 8]
mov edx, dword [ebx]
xor eax, eax
call fcn.00561de8
cmp dword [ebp - 8], 0
je 0x56237a
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5623b7
lea eax, [ebp - 0x260]
mov edx, 0x12
call fcn.004069a8
lea eax, [ebp - 0x218]
call fcn.00406544
lea eax, [ebp - 8]
mov edx, 2
call fcn.004069a8
ret