Function at 0x100040c0
Capabilities:
Get session user name
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ca9
mov eax, dword fs:[0]
push eax
sub esp, 0x7ac
mov eax, dword [0x10019154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x10019120]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x7b8], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x790], ecx
mov ecx, 0x10019120
mov dword [ebp - 0x7b4], esi
call eax
add eax, 0x10
mov dword [ebp - 0x7a4], eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x10004133
xor edx, edx
xor eax, eax
jmp 0x10004189
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x10004170
lea ebx, [eax + eax]
mov eax, ebx
call fcn.10007c00
mov edi, esp
test edi, edi
je 0x10004170
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x10004172
xor eax, eax
mov edx, eax
test eax, eax
je 0x10004189
lea esi, [eax + 1]
jmp 0x10004180
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004180
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x7a4]
call fcn.10002a50
mov edx, dword [0x10019120]
mov eax, dword [edx + 0xc]
mov ecx, 0x10019120
call eax
add eax, 0x10
mov dword [ebp - 0x798], eax
lea ecx, [ebp - 0x798]
push ecx
push 0x1a
push 0x10014f88
mov byte [ebp - 4], 1
call fcn.10003200
add esp, 0xc
test eax, eax
je 0x10004848
mov edx, dword [ebp - 0x790]
push edx
lea ecx, [ebp - 0x79c]
call fcn.100033b0
push eax
lea eax, [ebp - 0x7a0]
push 0x10013c30
mov bl, 2
push eax
mov byte [ebp - 4], bl
call fcn.100030d0
push 0x10013c30
push eax
lea ecx, [ebp - 0x790]
push ecx
mov byte [ebp - 4], 3
call fcn.10002ff0
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x798]
mov byte [ebp - 4], 4
call fcn.10002c80
mov eax, dword [ebp - 0x790]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000424f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7a0]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004274
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x79c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000429a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x10019120]
mov eax, dword [edx + 0xc]
mov ecx, 0x10019120
call eax
add eax, 0x10
mov dword [ebp - 0x7a0], eax
lea ecx, [ebp - 0x798]
push ecx
lea ecx, [ebp - 0x7a0]
mov byte [ebp - 4], 5
call fcn.10002c10
push 0xa
push str.search.ini
lea ecx, [ebp - 0x7a0]
call fcn.10002c80
mov edx, dword [0x10019120]
mov eax, dword [edx + 0xc]
mov ecx, 0x10019120
call eax
add eax, 0x10
mov dword [ebp - 0x794], eax
lea ecx, [ebp - 0x798]
push ecx
lea ecx, [ebp - 0x794]
mov byte [ebp - 4], 6
call fcn.10002c10
push 0xe
push str.operaprefs.ini
lea ecx, [ebp - 0x794]
call fcn.10002c80
mov edx, dword [0x10019120]
mov eax, dword [edx + 0xc]
mov ecx, 0x10019120
mov dword [ebp - 0x790], 0
call eax
add eax, 0x10
mov dword [ebp - 0x79c], eax
mov esi, 1
push esi
lea ecx, [ebp - 0x79c]
push str.Search_Engine__d
push ecx
mov byte [ebp - 4], 7
call fcn.10002fd0
mov edi, dword [ebp - 0x7a0]
mov ebx, dword [ebp - 0x79c]
add esp, 0xc
push edi
push 0x200
lea edx, [ebp - 0x788]
push edx
push 0
push str.UNIQUEID
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10004423
lea esp, [esp]
mov ecx, str.BEBBFFDF3C47064F82B65AE81B78EB02
lea eax, [ebp - 0x788]
jmp 0x100043a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100043c6
test dx, dx
je 0x100043c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100043c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100043a0
xor eax, eax
jmp 0x100043cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004419
inc esi
cmp esi, 0x64
jge 0x100048bd
push esi
lea eax, [ebp - 0x79c]
push str.Search_Engine__d
push eax
call fcn.10002fd0
mov ebx, dword [ebp - 0x79c]
add esp, 0xc
push edi
push 0x200
lea ecx, [ebp - 0x788]
push ecx
push 0
push str.UNIQUEID
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x10004390
jmp 0x10004423
mov dword [ebp - 0x790], 1
push 0x103
lea edx, [ebp - 0x17f]
push 0
push edx
mov byte [ebp - 0x180], 0
call fcn.10007510
add esp, 0xc
push 0
lea eax, [ebp - 0x7ac]
push eax
push 0
push 0x20119
push 0
push 0
push 0
push str.SOFTWAREMicrosoftCryptography
mov esi, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7a8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100044ab
lea ecx, [ebp - 0x7a8]
push ecx
mov ecx, dword [ebp - 0x7ac]
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x7b0]
push eax
push 0
push str.MachineGuid
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x7ac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x7a8]
push eax
lea ecx, [ebp - 0x388]
push ecx
mov dword [ebp - 0x7a8], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x7a4]
add eax, 0xfffffff0
push eax
call fcn.10002000
add esp, 4
add eax, 0x10
mov dword [ebp - 0x78c], eax
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 8
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100044f0
sub eax, esi
push eax
lea edx, [ebp - 0x180]
push edx
lea ecx, [ebp - 0x78c]
call fcn.10002f10
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x7b0]
push ecx
call fcn.10003860
add esp, 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x78c]
mov byte [ebp - 4], 9
call fcn.10002f10
mov eax, dword [ebp - 0x7b0]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000455e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
push 0x10013668
lea ecx, [ebp - 0x78c]
call fcn.10002f10
mov edx, dword [ebp - 0x78c]
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push edx
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.10001600
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x7c]
push 0x25
push ecx
call fcn.10001f60
mov edx, dword [ebp - 0x794]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x14
push edx
lea eax, [ebp - 0x7c]
push eax
push str.Data2
push str.State
call esi
mov eax, dword [ebp - 0x78c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100045f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7a4]
add eax, 0xfffffff0
push eax
call fcn.10002000
add esp, 4
add eax, 0x10
mov dword [ebp - 0x78c], eax
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 0xa
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004620
sub eax, ecx
push eax
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x78c]
call fcn.10002f10
lea edx, [ebp - 0x388]
push edx
lea ecx, [ebp - 0x78c]
call fcn.10004010
push 0xa
push 0x10013674
lea ecx, [ebp - 0x78c]
call fcn.10002f10
mov ecx, dword [ebp - 0x78c]
xor eax, eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x30]
push eax
push ecx
mov byte [ebp - 0x30], 0
call fcn.10001600
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x7c]
push 0x25
push eax
call fcn.10001f60
mov ecx, dword [ebp - 0x794]
add esp, 0x14
push ecx
lea edx, [ebp - 0x7c]
push edx
push str.Data4
push str.State
call esi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x78c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100046e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x790], 0
jne 0x100047be
push edi
push str.BEBBFFDF3C47064F82B65AE81B78EB02
push str.UNIQUEID
push ebx
call esi
mov ecx, dword [ebp - 0x7b8]
push edi
push ecx
push 0x10013dc4
push ebx
call esi
push edi
push 0x10013dc0
push str.Verbtext
push ebx
call esi
mov edx, dword [ebp - 0x7b4]
push edi
push edx
push 0x10013710
push ebx
call esi
push edi
push 0x10013da8
push 0x10013d9c
push ebx
call esi
push edi
push 0x10013d98
push 0x10013d90
push ebx
call esi
push edi
push 0x10013dc0
push str.Is_post
push ebx
call esi
push edi
push 0x10013dc0
push str.UseTLD
push ebx
call esi
push edi
push 0x10013dc0
push str.Has_endseparator
push ebx
call esi
push edi
push str.utf_8
push str.Encoding
push ebx
call esi
push edi
push 0x10013dc0
push str.Search_Type
push ebx
call esi
push edi
push 0x10013d0c
push str.Position
push ebx
call esi
push edi
push 0x10013dc0
push str.Nameid
push ebx
call esi
push edi
push 0x10013dc0
push str.Deleted
push ebx
call esi
push edi
push str.BEBBFFDF3C47064F82B65AE81B78EB02
push str.Default_Search
push str.Options
call esi
push edi
push str.BEBBFFDF3C47064F82B65AE81B78EB02
push str.Speed_Dial_Search
push str.Options
call esi
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10004802
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x794]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004848
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x798]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000486e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7a4]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x7c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100074e7
mov esp, ebp
pop ebp
ret 0xc
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100048dd
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x794]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004903
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004923
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x798]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7a4]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x10004899