Function at 0x1000a920
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c02eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc58
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc60], edx
mov esi, ecx
mov dword [ebp - 0xc5c], esi
mov eax, dword [ebx + 8]
push 0x208
mov dword [ebp - 0xc68], eax
lea eax, [ebp - 0x630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x3c
cmp byte [0x100f441c], 0
jne 0x1000ab0d
push 0
push 0
push str.path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100bed3d
mov esi, eax
add esp, 4
test esi, esi
je 0x1000ab07
push edi
push esi
push str.path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x1000aaf7
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc40]
push 0x104
push eax
push str._CommonImgFiltersSVG
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
push esi
lea ecx, [ebp - 0xc58]
call fcn.100869f0
push 0x100c444c
lea ecx, [ebp - 0xc58]
mov dword [ebp - 4], 0
call fcn.100868e0
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0xc58]
call fcn.100868e0
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
cmovae eax, dword [ebp - 0xc58]
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0xc44]
cmp edx, 8
jb 0x1000aaf7
mov ecx, dword [ebp - 0xc58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000aaed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000aaed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100bed2f
add esp, 8
push esi
call fcn.100be1a5
add esp, 4
mov byte [0x100f441c], 1
mov esi, dword [ebp - 0xc5c]
cmp dword [ebp - 0xc60], 2
je 0x1000ab2f
push 0x104
lea edx, [ebp - 0x220]
mov ecx, esi
call fcn.1000a320
add esp, 4
test eax, eax
jne 0x1000ab8d
push 0x100
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x830], 0
je 0x1000ac4a
lea eax, [ebp - 0x82e]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
add esp, 0x14
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ab96
sub ecx, edx
mov esi, 0x100ee304
sar ecx, 1
xor edi, edi
mov dword [ebp - 0xc5c], ecx
mov eax, dword [esi - 4]
test eax, eax
je 0x1000abed
cmp eax, dword [ebp - 0xc60]
jne 0x1000abe1
push ecx
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1000ac6a
mov ecx, dword [ebp - 0xc5c]
add esi, 0x30
inc edi
cmp esi, 0x100ee4e4
jl 0x1000abb2
push 0x104
lea eax, [ebp - 0x428]
push eax
push str._CommonImgFiltersHncImg10.ini
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
lea eax, [ebp - 0x428]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x1000ac4a
mov edi, dword [ebp - 0xc60]
mov eax, edi
and eax, 3
sub eax, 1
je 0x1000aca6
sub eax, 1
je 0x1000ac78
push 0x100c4490
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [edi + edi*2]
shl eax, 4
mov eax, dword [eax + 0x100ee32c]
jmp 0x1000ac4c
lea eax, [ebp - 0x428]
push eax
push 0x50
lea eax, [ebp - 0x630]
push eax
push 0x100c4050
lea eax, [ebp - 0x220]
push eax
push 0x100c4458
call dword [sym.imp.HncFoundation.dll_HncGetPrivateProfileString]
mov esi, eax
jmp 0x1000adea
push 0x1008
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000ac4a
mov dword [edi], 0xdddd
add edi, 8
je 0x1000ac4a
lea eax, [ebp - 0x428]
push eax
push 0x800
push edi
push 0x100c4050
push 0
push str.HWPW_Image_Filter___Import
call dword [sym.imp.HncFoundation.dll_HncGetPrivateProfileString]
test eax, eax
jne 0x1000ad06
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x1000ac4a
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1000ac4a
xor esi, esi
nop dword [eax + eax]
movzx ecx, word [edi + esi*2]
test cx, cx
jne 0x1000ad20
cmp word [edi + esi*2 + 2], cx
je 0x1000ad8b
push dword [ebp - 0xc5c]
test cx, cx
lea eax, [esi + 1]
lea ecx, [ebp - 0x220]
cmovne eax, esi
mov dword [ebp - 0xc64], eax
push ecx
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x1000ad72
mov eax, dword [ebp - 0xc5c]
mov esi, dword [ebp - 0xc64]
add eax, esi
movzx eax, word [edi + eax*2]
push eax
push 0x100c4450
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x1000ad8b
mov eax, dword [ebp - 0xc64]
mov esi, eax
cmp word [edi + eax*2], 0
je 0x1000ad10
inc esi
cmp word [edi + esi*2], 0
jne 0x1000ad81
jmp 0x1000ad10
cmp word [edi + esi*2], 0
lea eax, [edi + esi*2]
jne 0x1000ada0
cmp word [eax + 2], 0
jne 0x1000ada0
xor esi, esi
jmp 0x1000adc3
lea ecx, [ebp - 0x428]
push ecx
push 0x50
lea ecx, [ebp - 0x630]
push ecx
push 0x100c4050
push eax
push str.HWPW_Image_Filter___Import
call dword [sym.imp.HncFoundation.dll_HncGetPrivateProfileString]
mov esi, eax
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x1000add8
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0xc68]
mov edi, dword [ebp - 0xc60]
mov dword [eax], 0
test esi, esi
je 0x1000ac4a
push 0x104
lea eax, [ebp - 0xa38]
push eax
push str._CommonImgFilters_
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0xa38]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.HncFoundation.dll_HncLoadLibrary]
mov esi, eax
test esi, esi
je 0x1000af0f
mov ecx, dword [0x100f2dc4]
cmp ecx, 0xa
jae 0x1000ac4a
lea edx, [ecx + ecx*2]
shl edx, 4
cmp dword [edx + 0x100ee300], 0
je 0x1000ae9f
push dword [edx + 0x100ee32c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x100f2dc4]
xorps xmm0, xmm0
lea edx, [ecx + ecx*2]
shl edx, 4
mov dword [edx + 0x100ee300], 0
movups xmmword [edx + 0x100ee304], xmm0
movups xmmword [edx + 0x100ee314], xmm0
movq qword [edx + 0x100ee324], xmm0
mov dword [edx + 0x100ee32c], 0
cmp ecx, 0xa
jae 0x1000ac4a
lea ecx, [ebp - 0x220]
mov dword [edx + 0x100ee300], edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000aeb7
sub ecx, edi
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea eax, [edx + 0x100ee304]
push 0x14
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x100f2dc4]
add esp, 0x10
lea eax, [ecx + ecx*2]
shl eax, 4
mov dword [eax + 0x100ee32c], esi
cmp ecx, 9
jne 0x1000af08
mov dword [0x100f2dc4], 0
mov eax, esi
jmp 0x1000ac4c
inc ecx
mov dword [0x100f2dc4], ecx
mov eax, esi
jmp 0x1000ac4c