Function at 0x47d790
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db536
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x66a9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, 0x646ba4
lea ecx, [ebp - 0x82c]
call fcn.0047e320
lea ebx, [edi + 4]
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x830], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x82c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47d827
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47da64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47da64
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005a7400
add esp, 0xc
lea eax, [ebp - 0x810]
push dword [ebp - 0x82c]
push 0x400
push eax
push 0x634864
push str.proxy_type
push str.proxy_info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00406760
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
mov esi, dword [ebp - 0x814]
cmp esi, 8
mov ebx, dword [ebp - 0x828]
mov edx, dword [ebp - 0x818]
cmovae ecx, ebx
push 0xc
push str.custom_porxy
call fcn.0041ce40
add esp, 8
test eax, eax
jne 0x47da0a
push dword [ebp - 0x82c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x634864
push 0x646c30
push str.proxy_info
mov dword [edi], 2
call ebx
lea edx, [ebp - 0x810]
lea ecx, [edi + 0x24]
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47d8f0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407470
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x634864
push str.port
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea ecx, [edi + 0x28]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47d940
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407470
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x634864
push str.user
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea ecx, [edi + 0x1c]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47d990
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407470
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x634864
push str.password
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea ecx, [edi + 0x20]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47d9e0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407470
mov esi, dword [ebp - 0x814]
mov ebx, dword [ebp - 0x828]
jmp 0x47da2c
cmp esi, 8
lea ecx, [ebp - 0x828]
push 8
cmovae ecx, ebx
push str.ie_proxy
call fcn.0041ce40
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
cmp esi, 8
jb 0x47da41
lea eax, [esi + 1]
push eax
push ebx
lea ecx, [ebp - 0x828]
call fcn.00408200
mov ebx, dword [ebp - 0x830]
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x82c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47da90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058e39a
mov esp, ebp
pop ebp
ret