Function at 0x4203f5
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40a4
call fcn.00432300
and word [ebp - 0x814], 0
push ebx
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x812]
push str.Software360360se5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._sdefaultoption
lea eax, [ebp - 0x814]
push 0x3ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, str.proxy_style
mov esi, str.option
push dword [ebp + 8]
push 0
push ebx
push esi
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x814]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push SysReAllocString
call ebx
push dword [ebp + 8]
push 0
push str.proxy_use
push esi
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
lea eax, [ebp - 0x814]
push str.proxy_use
push eax
push SysReAllocString
call ebx
and word [ebp - 0x40a4], 0
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x40a2]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40a4]
push 0x104
mov edi, 0x466054
push eax
push edi
push str.proxy_bypass
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40a4]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x42051c
lea eax, [ebp - 0x40a4]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x40a4]
push eax
push 1
lea eax, [ebp - 0x814]
push str.proxy_bypass
push eax
push SysReAllocString
call ebx
and word [ebp - 0x2014], 0
mov esi, 0x3ff
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2012]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2014]
push 0x800
push eax
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x42064d
and word [ebp - 0x1014], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1012]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Software360360se5
push str._sdefaultproxy
lea eax, [ebp - 0x1014]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
lea eax, [ebp - 0x2014]
lea edi, [ebp - 0x2014]
push eax
call esi
test eax, eax
je 0x42064d
push edi
lea ecx, [ebp + 8]
call fcn.00404707
push 0
push 0x43b588
lea ecx, [ebp + 8]
call fcn.00404a42
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.004047b8
mov eax, dword [0x43b4ec]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ecx
jle 0x420628
mov eax, dword [eax - 8]
sub eax, ecx
lea ecx, [ebp + 8]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404803
push eax
lea ecx, [ebp - 4]
call fcn.00404768
lea ecx, [ebp - 0x10]
call fcn.00404beb
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
lea eax, [ebp - 0x1014]
push dword [ebp - 0xc]
push eax
push SysReAllocString
call ebx
push edi
call esi
lea ecx, [ebp - 4]
lea edi, [edi + eax*2 + 2]
call fcn.00404beb
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp + 8]
call fcn.00404beb
push edi
jmp 0x4205a0
pop edi
pop esi
pop ebx
leave
ret 4