Function at 0x456dc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1117
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4c4008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x268], esi
cmp dword [ecx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x270], eax
lea eax, [ecx + 0x10]
jne 0x456e0e
xor al, al
jmp 0x457321
xor edx, edx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], dx
mov dword [ebp - 4], edx
mov edx, ecx
mov edi, dword [ecx + 0x14]
cmp edi, 8
jb 0x456e4e
mov edx, dword [ecx]
cmp word [edx], 0x40
jne 0x456f18
mov eax, dword [eax]
mov edx, ecx
dec eax
lea ecx, [ebp - 0x248]
push eax
call fcn.004697f0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x456ead
mov ecx, eax
call fcn.004026f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x456ef3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456ee9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x456ee9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
mov esi, dword [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x456f37
lea edx, [ebp - 0x230]
cmp edx, ecx
je 0x456f37
cmp edi, 8
jb 0x456f29
mov ecx, dword [ecx]
push dword [eax]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00402760
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x26c], eax
cmp eax, 0x104
jb 0x456fea
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004961c5
add esp, 4
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x230]
push dword [ebp - 0x26c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456fc3
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.00402760
push edi
call fcn.00495f8d
add esp, 4
jmp 0x457015
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456ff3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402760
push 2
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x260]
push 0x4ae188
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00402760
mov byte [ebp - 4], 2
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x250]
mov edi, dword [ebp - 0x260]
cmovae eax, edi
cmp dword [ebp - 0x21c], 8
mov edx, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
push eax
push 0
call fcn.0042e310
add esp, 0xc
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x457224
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.00469770
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x268]
cmp ecx, esi
je 0x4570ff
call fcn.004026f0
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x268]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x457145
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45713b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45713b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
mov esi, dword [ebp - 0x270]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
test esi, esi
je 0x45721b
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x230]
sub eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x248]
sub eax, dword [ebp - 0x26c]
push eax
call fcn.004697f0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae ecx, dword [ebp - 0x248]
xor edx, edx
call fcn.00469160
mov dword [esi], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4571fe
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4571f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4571f4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 0x261], 1
jmp 0x457258
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x45724a
cmp dword [ebp - 0x21c], 8
mov ecx, esi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00402760
cmp dword [ebp - 0x270], 0
sete byte [ebp - 0x261]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x457298
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x45728e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45728e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00495a94
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4572fe
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4572f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4572f4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov al, byte [ebp - 0x261]
mov dword [ebp - 0x21c], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495a53
mov esp, ebp
pop ebp
ret