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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4391d6
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x45000c]
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 esi, ecx
mov edx, 0x44b5c4
lea ecx, [ebp - 0x82c]
call fcn.0040e440
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x82c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413731
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 0x413990
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413990
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004165d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
add esp, 0xc
push dword [ebp - 0x82c]
push 0x400
push eax
push 0x44588c
push str.proxy_type
push str.proxy_info
call ebx
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebp - 0x810], ax
jne 0x41379a
xor ecx, ecx
jmp 0x4137b2
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4137a3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.004098c0
push str.custom_porxy
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 1
call fcn.0040dbb0
test eax, eax
jne 0x41393e
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
mov dword [esi], 2
push 0x400
push eax
push 0x44588c
push 0x44b644
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea eax, [edx + 2]
lea ecx, [esi + 0x24]
mov dword [ebp - 0x830], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413820
sub edx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407a60
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x44588c
push str.port
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea eax, [edx + 2]
lea ecx, [esi + 0x28]
mov dword [ebp - 0x830], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413875
sub edx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407a60
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x44588c
push str.user
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea eax, [edx + 2]
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x830], eax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4138d0
sub edx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407a60
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x44588c
push str.password
push str.proxy_info
call ebx
lea edx, [ebp - 0x810]
lea ecx, [esi + 0x20]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413920
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00407a60
jmp 0x413955
push str.ie_proxy
lea ecx, [ebp - 0x828]
call fcn.0040dbb0
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x413973
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00407fc0
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
push edi
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 0x4139bc
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.00413e68
mov esp, ebp
pop ebp
ret