Function at 0x402070
Capabilities:
Check if file exists
Get common file path
Identify system language via api
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x408ff7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x40d0f4]
push ebx
push esi
push edi
mov dword [esp + 0x19c], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x4023aa
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x90], bl
mov ecx, 0x40
lea edi, [esp + 0x91]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, 0xf
lea eax, [esp + 0x90]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402100
sub eax, edx
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401340
push 0x12
push str.drivers_filem.sys
lea ecx, [esp + 0x44]
mov dword [esp + 0x1b4], ebx
call fcn.00401af0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x402141
lea eax, [esp + 0x40]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
test eax, eax
je 0x40216d
cmp dword [esp + 0x54], 0x10
jb 0x4023aa
mov edx, dword [esp + 0x40]
push edx
call fcn.00402f4d
add esp, 4
xor eax, eax
jmp 0x402962
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402177
sub eax, edx
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x44]
call fcn.00401340
push 0x13
push str.drivers_regsys.sys
lea ecx, [esp + 0x44]
call fcn.00401af0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x4021b1
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x4021d7
cmp dword [esp + 0x54], 0x10
jb 0x4023aa
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00402f4d
add esp, 4
xor eax, eax
jmp 0x402962
mov ecx, dword [esp + 0x14]
call fcn.00401df0
push 0x2001f
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000001
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.00401680
test eax, eax
jne 0x40220e
push str.URLSearchHooks
lea ecx, [esp + 0x14]
call fcn.00401850
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40221d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x10], ebx
push ebx
mov byte [esp + 0x1b0], 2
call fcn.0040360a
add esp, 4
push 0x2001f
push str.PROTOCOLSName_Space_Handlerhttp21C0F86B_4348_4C88_AF0C_9149DE70E132
push 0x80000000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00401680
test eax, eax
jne 0x402297
lea edx, [esp + 0x18]
push edx
push str.Last
lea ecx, [esp + 0x18]
call fcn.004016d0
test eax, eax
jne 0x40228e
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
cmp eax, 0x2a300
jb 0x40234f
lea ecx, [esp + 0x10]
call fcn.004015f0
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401430
push esi
push str.msxmlfilta.dll
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b4], 3
call fcn.00401af0
lea edx, [esp + 0x74]
push edx
push str.CLSID
push str.PROTOCOLSName_Space_Handlerhttp21C0F86B_4348_4C88_AF0C_9149DE70E132
push 0x80000000
call fcn.00401d30
add esp, 0x10
test eax, eax
je 0x40235a
lea eax, [esp + 0x74]
push eax
push 0x40a5c8
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132InprocServer32
push 0x80000000
call fcn.00401d30
add esp, 0x10
test eax, eax
mov esi, 0x10
je 0x40235f
cmp dword [esp + 0x70], esi
mov ecx, dword [esp + 0x5c]
jae 0x402312
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x8c], esi
mov eax, dword [esp + 0x78]
jae 0x402323
lea eax, [esp + 0x78]
push ecx
push eax
call fcn.00408de0
add esp, 8
test eax, eax
jne 0x40235f
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x40233f
lea eax, [esp + 0x5c]
push eax
call edi
test eax, eax
je 0x40235f
lea ecx, [esp + 0x58]
call fcn.00401220
lea ecx, [esp + 0x10]
call fcn.00401830
jmp 0x402398
mov esi, 0x10
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x40236d
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x14]
push eax
push 0x8a
call fcn.00401740
test eax, eax
jne 0x4023b1
lea ecx, [esp + 0x58]
call fcn.00401220
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402398
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x74]
call fcn.00401220
lea ecx, [esp + 0x3c]
call fcn.00401220
xor eax, eax
jmp 0x402962
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes6A1806CD_94D4_4689_BA73_F46FB2FBAAA1
lea ecx, [esp + 0x24]
call fcn.00401430
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1ac], 4
jae 0x4023d5
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x402435
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4023fb
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000001
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402421
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x1c]
call fcn.00401680
push 1
push 0x40a5c8
push str.DisplayName
lea ecx, [esp + 0x1c]
call fcn.00401710
push 1
push str.http:__www.baidu.com__s_wdsearchTermsrlscom.microsoft:languageieinputEncodingoeoutputEncodingtns001_dgcl3
push 0x40a498
lea ecx, [esp + 0x1c]
call fcn.00401710
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402474
push eax
call edi
mov dword [esp + 0x10], ebx
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402490
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x4024f0
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4024b6
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4024dc
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
push 1
push str.Windows_HttpFilter
push 0x40a5c8
lea ecx, [esp + 0x1c]
call fcn.00401710
push 1
push str.73A7FFA7_AA3A_49E5_A777_713B7DB78E9C
push str.AppID
lea ecx, [esp + 0x1c]
call fcn.00401710
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402529
push eax
call edi
mov dword [esp + 0x10], ebx
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132InprocServer32
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402545
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x4025a5
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x40256b
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402591
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x4025b3
lea eax, [esp + 0x5c]
push 1
push eax
push 0x40a5c8
lea ecx, [esp + 0x1c]
call fcn.00401710
push 1
push str.Apartment
push str.ThreadingModel
lea ecx, [esp + 0x1c]
call fcn.00401710
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4025e8
push eax
call edi
mov dword [esp + 0x10], ebx
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132ProgID
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402604
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x402664
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x40262a
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402650
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
push 1
push str.MsHttpApp.HttpFilter.1
push 0x40a5c8
lea ecx, [esp + 0x1c]
call fcn.00401710
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402688
push eax
call edi
mov dword [esp + 0x10], ebx
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132Programmable
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4026a4
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x4026e2
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4026ca
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4026f1
push eax
call edi
mov dword [esp + 0x10], ebx
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132TypeLib
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x40270d
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x40276d
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402733
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402759
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
push 1
push str.04F7BD61_E11D_4BB3_B6FE_B730BCA713D4
push 0x40a5c8
lea ecx, [esp + 0x1c]
call fcn.00401710
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402791
push eax
call edi
mov dword [esp + 0x10], ebx
push str.CLSID21C0F86B_4348_4C88_AF0C_9149DE70E132VersionIndependentProgID
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4027ad
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x40280d
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4027d3
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x4027f9
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
push 1
push str.MsHttpApp.HttpFilter
push 0x40a5c8
lea ecx, [esp + 0x1c]
call fcn.00401710
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402831
push eax
call edi
mov dword [esp + 0x10], ebx
push str.PROTOCOLSName_Space_Handlerhttp21C0F86B_4348_4C88_AF0C_9149DE70E132
lea ecx, [esp + 0x24]
call fcn.00401c50
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x40284d
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
test eax, eax
je 0x4028ad
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402873
lea eax, [esp + 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push 0x80000000
lea ecx, [esp + 0x2c]
call fcn.00401610
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x402899
lea eax, [esp + 0x24]
push 0x2001f
push eax
push 0x80000000
lea ecx, [esp + 0x1c]
call fcn.00401680
push 1
push str.ms_http_handle
push 0x40a5c8
lea ecx, [esp + 0x1c]
call fcn.00401710
push 1
push str.21C0F86B_4348_4C88_AF0C_9149DE70E132
push str.CLSID
lea ecx, [esp + 0x1c]
call fcn.00401710
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push ebx
push str.Last
push esi
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], ebx
je 0x402921
cmp dword [eax + 0x1c], 0x10
jb 0x40290d
mov eax, dword [eax + 8]
jmp 0x402910
add eax, 8
push 1
push eax
push 0x40a288
lea ecx, [esp + 0x1c]
call fcn.00401710
cmp esi, ebx
je 0x40292e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [esp + 0x20]
call fcn.00401220
lea ecx, [esp + 0x58]
call fcn.00401220
cmp esi, ebx
je 0x40294b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x74]
call fcn.00401220
lea ecx, [esp + 0x3c]
call fcn.00401220
mov eax, 1
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19c]
call fcn.004034b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret