Function at 0x41b240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d609
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d3874]
cmp eax, dword [ecx + 4]
jg 0x41b2a9
mov al, byte [0x4d3870]
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.0049901c
mov esp, ebp
pop ebp
ret
push 0x4d3874
call fcn.004993df
add esp, 4
cmp dword [0x4d3874], 0xffffffff
jne 0x41b289
push 4
xor eax, eax
mov dword [ebp - 0x474], 0
push 0x4a9b1c
lea ecx, [ebp - 0x474]
mov dword [ebp - 4], 0
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 7
mov word [ebp - 0x474], ax
call fcn.00404580
push 0x10
xor eax, eax
mov dword [ebp - 0x444], 0
push str.UseModuleAppName
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 7
mov word [ebp - 0x444], ax
call fcn.00404580
push 0x3b
xor eax, eax
mov dword [ebp - 0x42c], 0
push str.SOFTWAREKingsoftOffice6.0wpsofficeApplication_Settings
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
call fcn.00404580
cmp dword [ebp - 0x41c], 0
mov byte [ebp - 4], 3
je 0x41b5e0
cmp dword [ebp - 0x434], 0
je 0x41b5e0
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
lea ecx, [ebp - 0x598]
cmovae eax, dword [ebp - 0x42c]
push eax
call fcn.00417810
cmp dword [ebp - 0x430], 8
lea eax, [ebp - 0x444]
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x444]
push eax
call fcn.00417810
xor esi, esi
mov dword [ebp - 0x5b0], esi
mov dword [ebp - 0x5ac], esi
mov dword [ebp - 0x5a8], esi
lea eax, [ebp - 0x59c]
mov dword [ebp - 0x59c], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x598]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b42b
mov esi, dword [ebp - 0x59c]
mov dword [ebp - 0x5b0], esi
mov dword [ebp - 0x5ac], eax
jmp 0x41b42b
mov byte [ebp - 4], 6
test eax, eax
je 0x41b49a
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00401f70
jmp 0x41b447
test esi, esi
je 0x41b454
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41b454
mov edx, dword [ebp - 0x594]
or esi, 0xffffffff
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b476
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b476
mov edx, dword [ebp - 0x598]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41b5f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b5f4
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x5a0], 0x400
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x5a4]
push eax
push 0
push dword [ebp - 0x594]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x41b523
mov eax, dword [ebp - 0x5a4]
cmp eax, 1
je 0x41b4fb
cmp eax, 2
je 0x41b4fb
mov edi, 0xd
jmp 0x41b523
mov eax, dword [ebp - 0x5a0]
test eax, eax
je 0x41b516
cmp byte [ebp + eax - 0x415], 0
je 0x41b51f
mov edi, 0xd
jmp 0x41b523
mov byte [ebp - 0x414], 0
jmp 0x41b51f
xor edi, edi
jmp 0x41b523
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x590], eax
lea ecx, [ebp - 0x590]
push 3
lea eax, [ebp - 0x414]
push eax
call fcn.00418bb0
push dword [ebp - 0x590]
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 8
call fcn.00401960
mov eax, dword [ebp - 0x590]
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 0xa
cmp eax, ecx
je 0x41b578
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x41b578
lea ecx, [ebp - 0x474]
test edi, edi
lea eax, [ebp - 0x48c]
cmovne eax, ecx
lea ecx, [ebp - 0x45c]
push eax
call fcn.00401f70
mov edx, dword [ebp - 0x478]
cmp edx, 8
jb 0x41b447
mov ecx, dword [ebp - 0x48c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b5d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b5d1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
jmp 0x41b447
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00401f70
jmp 0x41b5f4
cmp dword [ebp - 0x448], 8
lea eax, [ebp - 0x45c]
push 0x4a9b1c
cmovae eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edx, dword [ebp - 0x448]
add esp, 8
test eax, eax
sete byte [0x4d3870]
cmp edx, 8
jb 0x41b664
mov ecx, dword [ebp - 0x45c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b658
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b773
jmp 0x41b658
push edx
push ecx
call fcn.0049900e
add esp, 8
jmp 0x41b664
mov edx, dword [ebp - 0x418]
xor eax, eax
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
cmp edx, 8
jb 0x41b6c5
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b6b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b773
jmp 0x41b6b9
push edx
push ecx
call fcn.0049900e
add esp, 8
jmp 0x41b6c5
mov edx, dword [ebp - 0x430]
xor eax, eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
cmp edx, 8
jb 0x41b722
mov ecx, dword [ebp - 0x444]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b716
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b773
jmp 0x41b716
push edx
push ecx
call fcn.0049900e
add esp, 8
jmp 0x41b722
mov edx, dword [ebp - 0x460]
xor eax, eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 7
mov word [ebp - 0x444], ax
cmp edx, 8
jb 0x41b785
mov ecx, dword [ebp - 0x474]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41b779
jmp 0x41b773
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
jmp 0x41b785
push 0x4d3874
call fcn.00499395
add esp, 4
jmp 0x41b289