Function at 0x4096f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4177cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
lea eax, [esp + 0x28]
push 0x104
push eax
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x409a0b
push ebx
push ebp
push esi
push edi
mov byte [eax + 1], 0
mov edi, str.config.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push str.ProxyType
push str.Global_Options
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x140]
push 0x104
push edx
push 0x420b8c
push str.ProxyServer
push str.Global_Options
mov ebx, eax
xor esi, esi
call ebp
lea eax, [esp + 0x38]
lea ecx, [esp + 0x33c]
push eax
push 0x104
push ecx
push 0x420b8c
push str.ProxyUser
push str.Global_Options
call ebp
lea edx, [esp + 0x38]
lea eax, [esp + 0x23c]
push edx
push 0x104
push eax
push 0x420b8c
push str.ProxyPasswd
push str.Global_Options
call ebp
cmp ebx, 2
jne 0x409819
lea ecx, [esp + 0x38]
push ecx
push esi
push str.ProxyPort
push str.Global_Options
call edi
mov esi, eax
jmp 0x4099a8
cmp ebx, 3
jne 0x4099c4
mov edx, dword [esp + 0x10]
push str..youtube.com
lea edi, [edx + 0x10]
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409870
push str..dailymotion.com
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409870
push str..nicovideo.jp
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409870
push str..ytimg.com
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409870
xor ebx, ebx
jmp 0x4099c4
mov edi, str.127.0.0.1
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 2
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x33c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420b8c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x23c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420b8c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x38]
push ecx
push 0
push str.LocalProxyPort
push str.Global_Options
call edi
lea edx, [esp + 0x38]
mov esi, eax
push edx
push 0
push str.AutoStartProxy
push str.Global_Options
call edi
mov edi, eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x440]
push 0x104
push ecx
push 0x420b8c
push str.ProxySoftPath
push str.Global_Options
call ebp
test edi, edi
je 0x4099a8
lea edx, [esp + 0x43c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4099a8
lea ecx, [esp + 0x14]
call fcn.0040ccf0
inc edi
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x54c], 0
call fcn.0040ce50
test al, al
jne 0x409994
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x14]
push eax
call fcn.0040d160
lea ecx, [esp + 0x14]
mov dword [esp + 0x548], 0xffffffff
call fcn.0040cdb0
test esi, esi
je 0x4099bf
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4099c4
mov ebx, 1
sub ebx, 0
mov eax, 1
je 0x4099e2
dec ebx
je 0x4099db
dec ebx
jne 0x4099e4
mov eax, 2
jmp 0x4099e4
mov eax, 1
jmp 0x4099e4
xor eax, eax
lea ecx, [esp + 0x23c]
push esi
push ecx
lea edx, [esp + 0x344]
lea ecx, [esp + 0x144]
push edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.00409a20
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
add esp, 0x53c
ret