Function at 0x498300
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x52e838], 0
push esi
mov esi, dword [ebp + 8]
jne 0x498331
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x3d0]
push eax
push 0x20019
push 0
push str.Software_s
push esi
push str.Software_s
lea eax, [ebp - 0x388]
push 0x12b
push eax
call fcn.0047f200
add esp, 0x14
push eax
push SysReAllocString
call dword [0x595dbc]
test eax, eax
jne 0x49843d
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
mov eax, dword [0x52e838]
add eax, 0xc
push eax
push 0
push 0
push str.SystemFlags
push dword [ebp - 0x3d0]
call dword [0x595dd0]
mov ecx, dword [0x52e838]
add ecx, 0xc
mov eax, dword [ecx]
and eax, 2
push eax
push 6
push ecx
call fcn.00481a00
add esp, 0xc
mov dword [ebp - 0x38c], 4
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x52e838]
add eax, 0x4c8
push eax
push 0
push 0
push str.KeepLog
push dword [ebp - 0x3d0]
call dword [0x595dd0]
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
mov eax, dword [0x52e838]
add eax, 0x4cc
push eax
push 0
push 0
push str.LogLevel
push dword [ebp - 0x3d0]
call dword [0x595dd0]
push dword [ebp - 0x3d0]
call dword [0x595de8]
lea eax, [ebp - 0x3d0]
push eax
push 0x20019
push 0
push str.Software_s
push esi
push str.Software_s
lea eax, [ebp - 0x388]
push 0x12b
push eax
call fcn.0047f200
add esp, 0x14
push eax
push SysReAllocString
call dword [0x595dbc]
test eax, eax
jne 0x498d5c
push ebx
push edi
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
mov eax, dword [0x52e838]
add eax, 0xdc4
push eax
push 0
push 0
push str.SelectedNodeUID
push dword [ebp - 0x3d0]
call dword [0x595dd0]
lea eax, [ebp - 0x38c]
push eax
mov eax, dword [0x52e838]
add eax, 8
push eax
push 0
push 0
push str.UserFlags
push dword [ebp - 0x3d0]
call dword [0x595dd0]
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.DialogInfoEx
push dword [ebp - 0x3d0]
call dword [0x595dbc]
test eax, eax
jne 0x49863a
mov dword [ebp - 0x3cc], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x18
push eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x390], 0x12c
push eax
lea eax, [ebp - 0x394]
movq qword [ebp - 0x3a0], xmm0
push eax
push 0
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push dword [ebp - 0x3c8]
movups xmmword [ebp - 0x3b0], xmm0
call dword [0x595de0]
test eax, eax
jne 0x498795
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp - 0x3a8]
mov eax, ebx
mov ecx, dword [ebp - 0x3b8]
mov edi, dword [ebp - 0x3c0]
sub ecx, edi
sub eax, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x3b4]
mov esi, dword [ebp - 0x3ac]
cmp eax, ecx
jg 0x4985b0
mov eax, dword [ebp - 0x3a4]
mov ecx, edx
sub ecx, dword [ebp - 0x3bc]
sub eax, esi
cmp eax, ecx
jle 0x4985c2
lea eax, [edi + ebx]
mov dword [ebp - 0x3b0], eax
lea eax, [edx + esi]
mov dword [ebp - 0x3a4], eax
push 3
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004a07e0
mov eax, dword [ebp - 0x3cc]
lea ecx, [ebp - 0x38c]
add esp, 0xc
mov dword [ebp - 0x38c], 0x18
inc eax
mov dword [ebp - 0x390], 0x12c
mov dword [ebp - 0x3cc], eax
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
lea ecx, [ebp - 0x394]
push ecx
push 0
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push eax
push dword [ebp - 0x3c8]
call dword [0x595de0]
test eax, eax
je 0x498570
jmp 0x498795
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.DialogInfo
push dword [ebp - 0x3d0]
call dword [0x595dbc]
test eax, eax
jne 0x4987a1
mov dword [ebp - 0x3cc], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x10
push eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x390], 0x12c
push eax
lea eax, [ebp - 0x394]
movq qword [ebp - 0x3a0], xmm0
push eax
push 0
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push dword [ebp - 0x3c8]
movups xmmword [ebp - 0x3b0], xmm0
call dword [0x595de0]
test eax, eax
jne 0x498795
nop dword [eax + eax]
mov edi, dword [ebp - 0x3a8]
mov ecx, edi
mov eax, dword [ebp - 0x3b8]
mov ebx, dword [ebp - 0x3c0]
sub eax, ebx
sub ecx, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x3b4]
mov esi, dword [ebp - 0x3ac]
cmp ecx, eax
jg 0x498710
mov ecx, dword [ebp - 0x3a4]
mov eax, edx
sub eax, dword [ebp - 0x3bc]
sub ecx, esi
cmp ecx, eax
jle 0x498722
lea eax, [edi + ebx]
mov dword [ebp - 0x3b0], eax
lea eax, [esi + edx]
mov dword [ebp - 0x3a4], eax
push 2
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004a07e0
mov eax, dword [ebp - 0x3cc]
lea ecx, [ebp - 0x38c]
add esp, 0xc
mov dword [ebp - 0x38c], 0x10
inc eax
mov dword [ebp - 0x390], 0x12c
mov dword [ebp - 0x3cc], eax
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
lea ecx, [ebp - 0x394]
push ecx
push 0
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push eax
push dword [ebp - 0x3c8]
call dword [0x595de0]
test eax, eax
je 0x4986d0
push dword [ebp - 0x3c8]
call dword [0x595de8]
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.ListInfo
push dword [ebp - 0x3d0]
call dword [0x595dbc]
test eax, eax
jne 0x498a4a
xor esi, esi
push 0x6928
mov dword [ebp - 0x394], esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edi, eax
add esp, 4
mov dword [ebp - 0x3ec], edi
test edi, edi
je 0x4987f8
push 0x6928
push esi
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x3d4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x3d4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [ebp - 0x3d4]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3cc], 0x12c
lea eax, [ebp - 0x398]
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x398], ecx
push eax
push ebx
lea eax, [ebp - 0x3c4]
push eax
push 0
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push dword [ebp - 0x3c8]
call dword [0x595de0]
test eax, eax
jne 0x498a28
mov al, byte [ebx]
mov byte [ebp - 0x3dd], al
mov al, byte [ebx + 1]
mov byte [ebp - 0x3de], al
cmp al, 8
jb 0x4989d7
push 0x190
lea eax, [edi + 0x7c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [ebp - 0x3dd]
add esp, 0xc
movzx ebx, byte [ebp - 0x3de]
xor esi, esi
mov dword [ebp - 0x3e4], eax
test eax, eax
je 0x49895e
mov eax, dword [ebp - 0x390]
add edi, 0x21c
add eax, 2
mov dword [ebp - 0x3e8], eax
nop
push ebx
push eax
lea eax, [ebp - 0x3dc]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x3dc], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x3dc]
add esp, 0xc
movss xmm0, dword [ebp - 0x3d8]
mov eax, edx
shr eax, 0x10
mov dword [edi - 4], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [edi], eax
movss dword [edi + 4], xmm0
test dl, dl
je 0x498935
movsx eax, dl
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x3ec]
mov dword [edx + eax*4 + 0x78], ecx
mov eax, dword [ebp - 0x3e8]
inc esi
add eax, ebx
add edi, 0xd0
mov dword [ebp - 0x3e8], eax
cmp esi, dword [ebp - 0x3e4]
jl 0x4988e0
mov edi, dword [ebp - 0x3ec]
mov eax, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x390]
mov edx, eax
imul edx, ebx
lea eax, [edx + 2]
cmp dword [ebp - 0x398], eax
jle 0x498983
mov eax, ebx
imul eax, esi
mov eax, dword [eax + ecx + 2]
mov dword [edi + 0x5808], eax
lea eax, [edx + 6]
cmp dword [ebp - 0x398], eax
jle 0x49899b
imul ebx, esi
mov eax, dword [ebx + ecx + 6]
mov dword [edi + 0x6918], eax
push 0x3db
push str.LibMain.c
push sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.0047cfc0
mov eax, dword [ebp - 0x3e4]
push edi
mov dword [edi + 0x78], eax
call fcn.004af8f0
mov ebx, dword [ebp - 0x390]
add esp, 0x1c
mov esi, dword [ebp - 0x394]
mov eax, dword [ebp - 0x3d4]
inc esi
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x398]
push eax
push ebx
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3cc], 0x12c
push eax
push 0
lea eax, [ebp - 0x3cc]
mov dword [ebp - 0x394], esi
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push dword [ebp - 0x3c8]
call dword [0x595de0]
test eax, eax
je 0x498880
push dword [edi]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0xc
push dword [ebp - 0x3c8]
call dword [0x595de8]
lea eax, [ebp - 0x3c8]
push eax
push 0x20019
push 0
push str.Editors
push dword [ebp - 0x3d0]
call dword [0x595dbc]
test eax, eax
jne 0x498c6f
xor edi, edi
call fcn.00489c80
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 4
push eax
push 0x595d54
push edi
push edi
push str.ActiveEditor
push dword [ebp - 0x3c8]
call dword [0x595dd0]
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push edi
push dword [ebp - 0x3c8]
call dword [0x595de4]
test eax, eax
jne 0x498c5e
xor esi, esi
lea ebx, [edi + 4]
nop word [eax + eax]
lea eax, [ebp - 0x3cc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x3c8]
call dword [0x595dbc]
test eax, eax
jne 0x498c3c
mov eax, dword [0x595d50]
xor ecx, ecx
inc eax
mov dword [0x595d50], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x595d58]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov dword [0x595d58], eax
xor ecx, ecx
mov eax, dword [0x595d50]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x595d5c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 0x10
mov dword [0x595d5c], eax
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x12c
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push str.Path
push dword [ebp - 0x3cc]
call dword [0x595dd0]
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498b80
sub ecx, edx
lea eax, [ecx + 1]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [0x595d58]
add esp, 4
mov dword [esi + ecx], eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x595d58]
mov edx, dword [esi + eax]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x498bb0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0x12c
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x4e546c
push dword [ebp - 0x3cc]
call dword [0x595dd0]
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498bf4
sub ecx, edx
lea eax, [ecx + 1]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [0x595d5c]
add esp, 4
mov dword [esi + ecx], eax
lea ecx, [ebp - 0x130]
mov eax, dword [0x595d5c]
mov edx, dword [esi + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x498c20
push dword [ebp - 0x3cc]
add esi, ebx
call dword [0x595de8]
push 0x12c
lea eax, [ebp - 0x25c]
inc edi
push eax
push edi
push dword [ebp - 0x3c8]
call dword [0x595de4]
test eax, eax
je 0x498ad0
push dword [ebp - 0x3c8]
call dword [0x595de8]
jmp 0x498d4e
xor esi, esi
cmp dword [0x595d50], esi
jle 0x498ca6
nop dword [eax]
mov eax, dword [0x595d58]
push dword [eax + esi*4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [0x595d5c]
push dword [eax + esi*4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add esp, 8
cmp esi, dword [0x595d50]
jl 0x498c80
push dword [0x595d58]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push dword [0x595d5c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xorps xmm0, xmm0
movups xmmword [0x595d50], xmm0
push 4
push dword [0x595d58]
mov dword [0x595d50], 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov dword [0x595d58], eax
xor ecx, ecx
mov eax, dword [0x595d50]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x595d5c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
push 0xc
mov dword [0x595d5c], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [0x595d58]
push 1
mov dword [ecx], eax
mov eax, dword [0x595d58]
movq xmm0, qword [str.Notepad.exe]
mov ecx, dword [eax]
movq qword [ecx], xmm0
mov eax, dword [0x4e5480]
mov dword [ecx + 8], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [0x595d5c]
add esp, 0x20
mov dword [ecx], eax
mov eax, dword [0x595d5c]
mov eax, dword [eax]
mov byte [eax], 0
push dword [ebp - 0x3d0]
call dword [0x595de8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004e2538
mov esp, ebp
pop ebp
ret