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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d21bb
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x4fe0a8]
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 ebx, ecx
mov edx, str.http_proxy.ini
lea ecx, [ebp - 0x82c]
call fcn.00474770
lea eax, [ebx + 4]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x82c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e297
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 0x48e54f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48e54f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0049edc0
add esp, 0xc
lea eax, [ebp - 0x810]
push dword [ebp - 0x82c]
push 0x400
push eax
push 0x4e2530
push str.proxy_type
push str.proxy_info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x828], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
lea edx, [ecx + 2]
mov word [ebp - 0x828], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e304
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00426a30
mov byte [ebp - 4], 1
lea esi, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
mov edi, dword [ebp - 0x828]
mov eax, dword [ebp - 0x818]
cmovae esi, edi
cmp eax, 0xc
jne 0x48e4d8
mov ecx, str.custom_porxy
mov edx, eax
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x48e4d2
add ecx, 2
sub edx, 1
jne 0x48e360
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4e2530
push 0x4eac68
push str.proxy_info
mov dword [ebx], 2
call esi
lea edx, [ebp - 0x810]
lea eax, [edx + 2]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x830], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48e3b6
sub edx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00404980
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4e2530
push str.port
push str.proxy_info
call esi
lea edx, [ebp - 0x810]
lea eax, [edx + 2]
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x830], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48e410
sub edx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00404980
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4e2530
push str.user
push str.proxy_info
call esi
lea edx, [ebp - 0x810]
lea eax, [edx + 2]
lea ecx, [ebx + 0x1c]
mov dword [ebp - 0x830], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48e465
sub edx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00404980
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4e2530
push str.password
push str.proxy_info
call esi
lea edx, [ebp - 0x810]
lea ecx, [ebx + 0x20]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48e4b4
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00404980
jmp 0x48e515
mov eax, dword [ebp - 0x818]
cmp dword [ebp - 0x814], 8
lea esi, [ebp - 0x828]
cmovae esi, edi
cmp eax, 8
jne 0x48e50f
mov ecx, str.ie_proxy
mov edx, eax
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x48e50f
add ecx, 2
sub edx, 1
jne 0x48e4f6
mov dword [ebx], 1
jmp 0x48e515
mov dword [ebx], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x48e54f
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x48e545
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e59c
push ecx
push edi
call fcn.0049cf67
add esp, 8
push dword [ebp - 0x834]
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 0x48e580
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.0049d3dd
mov esp, ebp
pop ebp
ret
call fcn.004a1aef
int3