Function at 0x40a090
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41791b
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 0x40a39e
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 0x40a1b9
lea ecx, [esp + 0x38]
push ecx
push esi
push str.ProxyPort
push str.Global_Options
call edi
mov esi, eax
jmp 0x40a33b
cmp ebx, 3
jne 0x40a357
mov edi, dword [esp + 0x550]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
push str..youtube.com
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a203
push str..dailymotion.com
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a203
push str..nicovideo.jp
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a203
xor ebx, ebx
jmp 0x40a357
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 0x40a33b
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 0x40a33b
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 0x40a327
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 0x40a352
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40a357
mov ebx, 1
sub ebx, 0
mov eax, 1
je 0x40a375
dec ebx
je 0x40a36e
dec ebx
jne 0x40a377
mov eax, 2
jmp 0x40a377
mov eax, 1
jmp 0x40a377
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.0040a3c0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
add esp, 0x53c
ret 4