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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583c66
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x5ca104]
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.00437640
lea esi, [ebx + 4]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x830], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x82c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x483a07
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 0x483cc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x483cc5
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00524040
add esp, 0xc
lea eax, [ebp - 0x810]
push dword [ebp - 0x82c]
push 0x400
push eax
push 0x5a0e3c
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.0041c050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
mov edx, dword [ebp - 0x814]
mov esi, 0xc
mov edi, dword [ebp - 0x818]
cmp edx, 8
cmovae ecx, dword [ebp - 0x828]
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x483aad
mov edx, 0x5a848c
nop dword [eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x483c0e
add ecx, 2
add edx, 2
sub esi, 1
jne 0x483a90
mov edx, dword [ebp - 0x814]
xor eax, eax
test eax, eax
jne 0x483c25
cmp edi, 0xc
jb 0x483c25
ja 0x483c25
push dword [ebp - 0x82c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x5a0e3c
push 0x5a84bc
push str.proxy_info
mov dword [ebx], 2
call edi
lea edx, [ebp - 0x810]
lea ecx, [ebx + 0x24]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x483b01
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00405730
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x5a0e3c
push str.port
push str.proxy_info
call edi
lea edx, [ebp - 0x810]
lea ecx, [ebx + 0x28]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x483b50
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00405730
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x5a0e3c
push str.user
push str.proxy_info
call edi
lea edx, [ebp - 0x810]
lea ecx, [ebx + 0x1c]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x483ba0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00405730
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x5a0e3c
push str.password
push str.proxy_info
call edi
lea edx, [ebp - 0x810]
lea ecx, [ebx + 0x20]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x483bf0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.00405730
jmp 0x483c84
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [ebp - 0x814]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x483aaf
cmp edx, 8
lea ecx, [ebp - 0x828]
mov esi, 8
cmovae ecx, dword [ebp - 0x828]
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x483c5b
mov edx, str.ie_proxy
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x483c70
add ecx, 2
add edx, 2
sub esi, 1
jne 0x483c48
xor eax, eax
test eax, eax
jne 0x483c7e
cmp edi, 8
jb 0x483c7e
ja 0x483c7e
mov dword [ebx], 1
jmp 0x483c84
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x483c5d
mov dword [ebx], 0
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x483ca2
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.0041fd20
mov esi, dword [ebp - 0x830]
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x82c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x483d18
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x483d14
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x483d14
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x483d18
mov ecx, edx
call esi
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.0051fefc
mov esp, ebp
pop ebp
ret