Function at 0x498590
Capabilities:
Delete registry key
Persist via app paths registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a8c18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push closesocket
call esi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x498617
mov ecx, dword [esp + 0x14]
push 6
push 0x5e9cac
push 1
push 0
push str.Check_Associations
push ecx
call ebp
mov edx, dword [esp + 0x14]
push 8
push 0x5e9c74
push 1
push 0
push str.ShowedCheckBrowser
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x498660
mov edx, dword [esp + 0x14]
push 6
push 0x5e9cac
push 1
push eax
push str.Check_Associations
push edx
call ebp
mov eax, dword [esp + 0x14]
push 8
push 0x5e9c74
push 1
push 0
push str.ShowedCheckBrowser
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4987d6
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x498693
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], 0
call fcn.004023b0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call fcn.00402330
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4986e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
push 0x5c
push esi
call fcn.005773c5
add esp, 8
test eax, eax
jne 0x498701
or eax, 0xffffffff
jmp 0x498705
sub eax, esi
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00414630
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call fcn.00402330
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49874b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498750
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0x5d2b58
push edx
call ebp
mov esi, dword [esp + 0x20]
mov eax, esi
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x498780
sub eax, ecx
mov ecx, dword [esp + 0x14]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.Path
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4987d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x14]
push ecx
push str..htm
push closesocket
call esi
test eax, eax
jne 0x498808
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..htm
push closesocket
call esi
test eax, eax
jne 0x498833
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
jmp 0x498873
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..htm
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49887c
push 0x12
push str.htmlfile
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..html
push closesocket
call esi
test eax, eax
jne 0x4988ae
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..html
push closesocket
call esi
test eax, eax
jne 0x4988d9
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
jmp 0x498919
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..html
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498922
push 0x12
push str.htmlfile
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..shtm
push closesocket
call esi
test eax, eax
jne 0x49896b
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
push str..shtm
push closesocket
call esi
test eax, eax
jne 0x4989b4
push 0x12
push str.htmlfile
push 1
push eax
mov eax, dword [esp + 0x24]
push 0x5d2b58
push eax
call ebp
mov ecx, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
jmp 0x498a12
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..shtm
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498a14
push 0x12
push str.htmlfile
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov edx, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..shtml
push closesocket
call esi
test eax, eax
jne 0x498a5d
mov edx, dword [esp + 0x14]
push 0x12
push str.htmlfile
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
push str..shtml
push closesocket
call esi
test eax, eax
jne 0x498aa6
push 0x12
push str.htmlfile
push 1
push eax
mov eax, dword [esp + 0x24]
push 0x5d2b58
push eax
call ebp
mov ecx, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
jmp 0x498b04
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..shtml
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498b06
push 0x12
push str.htmlfile
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov edx, dword [esp + 0x14]
push 0x14
push str.text_html
push 1
push 0
push str.Content_Type
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str.htmlfile_shell
push closesocket
call esi
test eax, eax
jne 0x498b38
mov edx, dword [esp + 0x14]
push 0xa
push str.open
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x4c]
push edi
push closesocket
mov edx, str.htmlfile_shell
call fcn.00497370
mov ecx, dword [esp + 0x54]
push edi
push closesocket
mov edx, str.htmlfile_shell
call fcn.00497370
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push str..url
push closesocket
call esi
test eax, eax
jne 0x498b95
mov edx, dword [esp + 0x14]
push 0x22
push str.InternetShortcut
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..url
push closesocket
call esi
test eax, eax
jne 0x498bc0
mov edx, dword [esp + 0x14]
push 0x22
push str.InternetShortcut
push 1
push eax
push 0x5d2b58
push edx
jmp 0x498c00
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..url
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498c09
push 0x22
push str.InternetShortcut
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x4c]
push edi
push closesocket
mov edx, str.InternetShortcut_shell
call fcn.00497370
mov ecx, dword [esp + 0x54]
push edi
push closesocket
mov edx, str.InternetShortcut_shell
call fcn.00497370
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push str..mht
push closesocket
call esi
test eax, eax
jne 0x498c66
mov edx, dword [esp + 0x14]
push 0x14
push str.mhtmlfile
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..mht
push closesocket
call esi
test eax, eax
jne 0x498c91
mov edx, dword [esp + 0x14]
push 0x14
push str.mhtmlfile
push 1
push eax
push 0x5d2b58
push edx
jmp 0x498cd1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..mht
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498cda
push 0x14
push str.mhtmlfile
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..mhtml
push closesocket
call esi
test eax, eax
jne 0x498d0c
mov edx, dword [esp + 0x14]
push 0x14
push str.mhtmlfile
push 1
push eax
push 0x5d2b58
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str..mhtml
push closesocket
call esi
test eax, eax
jne 0x498d37
mov edx, dword [esp + 0x14]
push 0x14
push str.mhtmlfile
push 1
push eax
push 0x5d2b58
push edx
jmp 0x498d77
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..mhtml
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498d80
push 0x14
push str.mhtmlfile
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x4c]
push edi
push closesocket
mov edx, str.mhtmlfile_shell
call fcn.00497370
mov ecx, dword [esp + 0x54]
push edi
push closesocket
mov edx, str.mhtmlfile_shell
call fcn.00497370
mov ecx, dword [esp + 0x5c]
push edi
push closesocket
mov edx, str.http_shell
call fcn.00497370
mov ecx, dword [esp + 0x64]
push edi
push closesocket
mov edx, str.http_shell
call fcn.00497370
mov ecx, dword [esp + 0x6c]
push edi
push closesocket
mov edx, str.https_shell
call fcn.00497370
mov ecx, dword [esp + 0x74]
push edi
push closesocket
mov edx, str.https_shell
call fcn.00497370
mov ecx, dword [esp + 0x7c]
push edi
push closesocket
mov edx, str.file_shell
call fcn.00497370
mov ecx, dword [esp + 0x84]
push edi
push closesocket
mov edx, str.file_shell
call fcn.00497370
add esp, 0x40
lea ecx, [esp + 0x14]
push ecx
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x498fae
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x498e59
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x50]
push 0
push ecx
xor ecx, ecx
lea edi, [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x4c], 3
call fcn.0044b470
mov eax, dword [esp + 0x2c]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498e90
mov edi, dword [esp + 0x24]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push edx
push edi
push 1
xor esi, esi
push esi
push 0x5d2b58
push eax
call ebp
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
call esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x498f83
mov eax, dword [esp + 0x54]
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x498ef6
sub eax, edi
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x54]
push edx
push eax
push 1
push 0
push str.LocalizedString
push ecx
call ebp
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.shellopencommand
push eax
call esi
mov edx, dword [esp + 0x30]
test edx, edx
je 0x498f78
mov edi, dword [esp + 0x50]
mov eax, edi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498f50
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0x5d2b58
push edx
call ebp
mov edx, dword [esp + 0x30]
push edx
call ebx
mov eax, dword [esp + 0x28]
push eax
call ebx
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push ecx
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x498fae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push str.CLSID0002DF01_0000_0000_C000_000000000046LocalServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jne 0x49900f
mov eax, dword [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498fd4
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x50]
push edx
push eax
push 1
push 0
push 0x5d2b58
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x4990ee
push str.CLSID
push closesocket
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.CLSID
push closesocket
call edi
mov edx, dword [esp + 0x2c]
push str.0002DF01_0000_0000_C000_000000000046
push edx
call esi
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.0002DF01_0000_0000_C000_000000000046
push edx
call edi
mov eax, dword [esp + 0x30]
push str.LocalServer32
push eax
call esi
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.LocalServer32
push eax
call edi
mov eax, dword [esp + 0x50]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4990b0
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x28]
push ecx
push edx
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov ecx, dword [esp + 0x28]
push ecx
call ebx
mov edx, dword [esp + 0x30]
push edx
call ebx
mov eax, dword [esp + 0x2c]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str.CLSID0002DF01_0000_0000_C000_000000000046LocalServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x499143
mov eax, dword [esp + 0x50]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499110
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x50]
push edx
push eax
push 1
push 0
push 0x5d2b58
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
jmp 0x499213
push str.CLSID
push closesocket
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.CLSID
push closesocket
call edi
mov edx, dword [esp + 0x2c]
push str.0002DF01_0000_0000_C000_000000000046
push edx
call esi
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.0002DF01_0000_0000_C000_000000000046
push edx
call edi
mov eax, dword [esp + 0x30]
push str.LocalServer32
push eax
call esi
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.LocalServer32
push eax
call edi
mov eax, dword [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4991d7
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x28]
push ecx
push edx
push 1
push 0
push 0x5d2b58
push eax
call ebp
mov ecx, dword [esp + 0x28]
push ecx
call ebx
mov edx, dword [esp + 0x30]
push edx
call ebx
mov eax, dword [esp + 0x2c]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push str.SOFTWARETencent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4992a7
mov edx, dword [esp + 0x14]
push str.Traveler
push edx
mov dword [esp + 0x38], eax
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Traveler
push edx
call edi
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4992a0
mov eax, dword [esp + 0x50]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499274
mov ecx, dword [esp + 0x50]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
push 0x5f3b14
push edx
call ebp
mov edx, dword [esp + 0x30]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
call fcn.0044a3b0
cmp eax, 6
jl 0x499694
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x30]
push ecx
push str.SOFTWAREClasses
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4992e6
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x30]
push edx
push str.Tango.AssocFile.HTM
call fcn.00497b00
add esp, 8
lea eax, [esp + 0x30]
push eax
push str.SOFTWAREClasses
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x499311
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x54]
push str.Tango.HTTP
call fcn.00497b00
add esp, 8
lea edx, [esp + 0x24]
push edx
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x49954a
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
call edi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x499543
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Capabilities
push eax
call edi
mov edx, dword [esp + 0x20]
test edx, edx
je 0x49953c
mov esi, dword [esp + 0x54]
mov eax, esi
lea ecx, [eax + 2]
mov dword [esp + 0x38], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499393
sub eax, dword [esp + 0x38]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.ApplicationDescription
push edx
call ebp
mov eax, esi
lea edx, [eax + 2]
jmp 0x4993c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4993c0
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.ApplicationName
push edx
call ebp
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.FileAssociations
push edx
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49946f
push 0x28
push str.Tango.AssocFile.HTM
push 1
push 0
push str..htm
push eax
call ebp
mov eax, dword [esp + 0x1c]
push 0x28
push str.Tango.AssocFile.HTM
push 1
push 0
push str..html
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push 0x28
push str.Tango.AssocFile.HTM
push 1
push 0
push str..mht
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push 0x28
push str.Tango.AssocFile.HTM
push 1
push 0
push str..mhtml
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Startmenu
push eax
call edi
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4994bc
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.StartmenuInternet
push edx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.UrlAssociations
push edx
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49952f
push 0x16
push str.Tango.HTTP
push 1
push 0
push 0x5f3c5c
push eax
call ebp
mov eax, dword [esp + 0x1c]
push 0x16
push str.Tango.HTTP
push 1
push 0
push 0x5ea930
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push 0x16
push str.Tango.HTTP
push 1
push 0
push str.https
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov eax, dword [esp + 0x20]
push eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [esp + 0x34]
push ecx
call ebx
mov edx, dword [esp + 0x24]
push edx
call ebx
lea eax, [esp + 0x24]
push eax
push str.SOFTWARERegisteredApplications
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4995d9
push str.SoftwareTangoBrowserCapabilities
lea ecx, [esp + 0x3c]
call fcn.004023b0
mov dword [esp + 0x44], 4
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x24]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.Tango_Browser
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
call ebx
test esi, esi
je 0x4995b1
push 0
push 0
push 0x5f3d18
call fcn.0055e834
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4995d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Tango.AssocFile.HTM
mov ecx, str..htm
call fcn.00497d20
mov esi, eax
push str.Tango.AssocFile.HTM
mov ecx, str..html
and esi, 1
call fcn.00497d20
push str.Tango.AssocFile.HTM
mov ecx, str..mht
and esi, eax
call fcn.00497d20
push str.Tango.AssocFile.HTM
mov ecx, str..mhtml
and esi, eax
call fcn.00497d20
push str.Tango.AssocFile.HTM
mov ecx, str..url
and esi, eax
call fcn.00497d20
push str.Tango.HTTP
push 0x5f3c5c
and esi, eax
call fcn.00497ff0
push str.Tango.HTTP
push 0x5ea930
and esi, eax
call fcn.00497ff0
push str.Tango.HTTP
push str.https
and esi, eax
call fcn.00497ff0
add esp, 0x2c
test esi, eax
jne 0x499677
push 0
push 0
push 0x5f3d58
call fcn.0055e834
mov esi, dword [esp + 0x50]
push esi
mov ecx, str.IE.HTTP
call fcn.00498320
push esi
mov ecx, str.IE.HTTPS
call fcn.00498320
add esp, 8
push 1
call fcn.005659bc
call fcn.005644f1
mov eax, dword [eax + 8]
push 0
push 0
push 0x5e3b68
push eax
call fcn.005662a2
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret