Function at 0x10038040
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1007cea5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa00
mov eax, dword [0x10098a04]
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0xa1c], 0
call ebp
lea edx, [esp + 0x24]
push edx
call ebp
mov di, word [esp + 0xa24]
movzx esi, di
mov eax, esi
cmp eax, 0x9c54
mov byte [esp + 0xa18], 2
jg 0x100384c7
je 0x10038476
sub eax, 0x9c41
cmp eax, 8
ja case.0x100380ca.40003
jmp dword [eax*4 + 0x10038604]
mov ecx, dword [esp + 0x18]
add ecx, 0x6c
call fcn.1000cbb0
jmp 0x100385ab
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
push 0
push 0xea69
push 0
call fcn.10033ab0
jmp 0x100385ab
call fcn.1004fc20
push 0
push 1
lea ecx, [esp + 0x1e0]
call fcn.10037ab0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x1dc]
call fcn.1002a010
lea ecx, [esp + 0x1d8]
call fcn.10040150
jmp 0x100385ab
push 0
lea ecx, [esp + 0x84]
call fcn.10005dc0
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x88]
call fcn.1002aef0
lea ecx, [esp + 0x80]
call fcn.10003510
jmp 0x100385ab
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.SOFTWARESohu_RDDownload
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100385ab
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.P4pDirPath
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003824f
lea edi, [esp + 0xd4]
dec edi
jmp 0x100381d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100381d0
mov eax, dword [str.Downloaded]
mov ecx, dword [0x10084194]
mov edx, dword [0x10084198]
mov dword [edi], eax
mov dword [edi + 4], ecx
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x74]
mov dword [edi + 8], edx
mov word [esp + 0x74], 0
call fcn.1001e2a0
lea ecx, [esp + 0x60]
push ecx
call ebp
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x168]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push edx
push edx
push edx
lea edx, [esp + 0x80]
push edx
push eax
mov byte [esp + 0xa30], 4
call dword [ecx + 0xd0]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x60]
push eax
call esi
lea ecx, [esp + 0x70]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100385ab
push 0x9c44
lea ecx, [esp + 0x14]
call fcn.10004e40
lea ecx, [esp + 0x14]
call fcn.10003480
lea ecx, [esp + 0x1c]
call fcn.10003480
lea ecx, [esp + 0x20]
call fcn.10003480
push str.Version
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa1c], 8
call fcn.10005e50
push str.Download
lea ecx, [esp + 0x40]
mov byte [esp + 0xa1c], 9
call fcn.10005e50
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0xa28], 0xa
call fcn.10049b60
add esp, 0x10
lea ecx, [esp + 0x3c]
call fcn.100034a0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa18], 8
call fcn.100034a0
push str.UserID
lea ecx, [esp + 0x48]
call fcn.10005e50
push str.Download
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa1c], 0xb
call fcn.10005e50
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0xa28], 0xc
call fcn.10049b60
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.100034a0
lea ecx, [esp + 0x44]
mov byte [esp + 0xa18], 8
call fcn.100034a0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push str.MicrosoftInternet_ExplorerVersion
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.10005e50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0xa24], 0xd
call fcn.10049d30
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0xa18], 8
call fcn.100034a0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x60]
call fcn.10007230
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_v_sid_sos_die_s
push eax
mov byte [esp + 0xa34], 0xe
call fcn.10004e20
add esp, 0x1c
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa18], 8
call fcn.100034a0
cmp di, 0x9c45
jne 0x100383fb
push str.m1
lea ecx, [esp + 0x14]
call fcn.1000d510
mov ebx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x50]
call fcn.1001e2a0
call fcn.1001d2c0
cmp eax, 1
je 0x10038432
push 0
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.10007230
call fcn.1001f070
add esp, 0xc
jmp 0x10038456
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x168]
test eax, eax
je 0x10038456
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push edx
push edx
push edx
lea edx, [esp + 0x5c]
push edx
push eax
call dword [ecx + 0xd0]
lea ecx, [esp + 0x20]
call fcn.100034a0
lea ecx, [esp + 0x1c]
call fcn.100034a0
lea ecx, [esp + 0x14]
call fcn.100034a0
jmp 0x100385ab
mov ecx, dword [0x10096d68]
lea eax, [esp + 0x40]
push eax
call fcn.10051340
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa1c], 5
call fcn.10004aa0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0xa18], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038549
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x10038549
cmp eax, 0x9d81
je 0x10038539
push 0
push esi
call fcn.10001450
add esp, 8
test eax, eax
je 0x100384ec
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.10004800
mov ebx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x50]
call fcn.1001e2a0
call fcn.1001d2c0
cmp eax, 1
je 0x10038524
push 0
push 1
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.10002a40
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.1001f070
add esp, 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100385ab
mov ecx, dword [ebx - 0xc]
test ecx, ecx
jmp 0x10038593
push 0x32
push str.http:__tb.sogou.com_official_help.jsp_pid34031410
lea ecx, [esp + 0x18]
call fcn.100048d0
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ebx
call fcn.1001e2a0
call fcn.1001d2c0
cmp eax, 1
je 0x10038587
push 0
push 1
push ecx
lea eax, [ebx - 0x10]
mov esi, esp
mov dword [esp + 0x20], esp
push eax
call fcn.10002a40
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.1001f070
add esp, 0xc
jmp 0x100385ab
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100385ab
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push edx
push edx
push edx
lea edx, [esp + 0x5c]
push edx
push eax
call dword [ecx + 0xd0]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x4c]
push ecx
call esi
add ebx, 0xfffffff0
mov dword [esp + 0xa18], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x100385e4
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0xa10]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0c
ret 0x10