Function at 0x49af80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x59c
mov eax, dword [0x5b00cc]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.RasDlg.dll
call esi
mov ebx, eax
push str.RasApi32.dll
mov dword [esp + 0x18], ebx
call esi
push str.RasPhonebookDlgA
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
call ebx
push str.RasGetErrorStringA
push edi
mov dword [esp + 0x20], eax
call ebx
xor esi, esi
cmp dword [0x5f4b04], esi
mov dword [esp + 0x1c], eax
je 0x49b02c
push str.RasGetConnectStatusA
push edi
call ebx
cmp eax, esi
je 0x49b02c
mov edx, dword [0x5f4b04]
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x60], 0x120
call eax
cmp dword [esp + 0x5c], 0x2000
jne 0x49b02c
mov dword [0x5f3204], 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
cmp ecx, esi
mov dword [0x5f3204], esi
je 0x49b167
cmp byte [ebp + 8], 0
je 0x49b167
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
mov dword [esp + 0x38], 0x28
mov dword [0x5f3204], 4
call ecx
test eax, eax
jne 0x49b0a1
mov ecx, dword [esp + 0x14]
mov dword [0x5f3204], esi
push ecx
jmp 0x49b4c2
push 0x2d0
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push str.RasEnumConnectionsA
mov dword [eax], 0x2d0
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x2d0
call ebx
cmp eax, esi
je 0x49b15d
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
push edi
call eax
cmp eax, esi
je 0x49b12e
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x49b12e
push 0xff
lea edx, [esp + 0x5c]
push edx
push eax
call ecx
push esi
push str.RAS_Error
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov dword [0x5f3204], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
push edi
mov dword [0x5f4b04], ecx
mov dword [0x5f3204], 5
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
push edx
jmp 0x49b4b1
push 0x214
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push str.RasEnumEntriesA
mov ebx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
push edi
mov dword [ebx], 0x214
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x49b4b0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push esi
push esi
call eax
cmp eax, 0x25b
jne 0x49b1ce
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebx], 0x214
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push esi
push esi
call dword [esp + 0x24]
cmp eax, esi
je 0x49b22c
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x49b22c
push 0xff
lea edx, [esp + 0x5c]
push edx
push eax
call ecx
push esi
push str.RAS_Error
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
mov dword [0x5f3204], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
push 0x420
lea ecx, [esp + 0x180]
push esi
push ecx
call fcn.0056b660
lea eax, [esp + 0x188]
lea edx, [ebx + 4]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x178], 0x424
sub edx, ecx
jmp 0x49b260
mov cl, byte [edx + eax]
mov byte [eax], cl
add eax, 1
test cl, cl
jne 0x49b260
push str.RasGetEntryDialParamsA
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x49b49c
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x17c]
push ecx
push esi
call eax
cmp eax, esi
je 0x49b2d6
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x49b2d6
push 0xff
lea edx, [esp + 0x5c]
push edx
push eax
call ecx
push esi
push str.RAS_Error
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
mov dword [0x5f3204], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x49b4c2
push str.RasGetEntryPropertiesA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
je 0x49b3ba
push esi
push esi
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [ebx + 4]
push ecx
push esi
call eax
mov eax, dword [esp + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x54], esi
jne 0x49b332
push 0x123
push str.........CommonNew_Socket_CodePPPSocketWin.cpp
mov edx, str.entry
lea ecx, [eax + 4]
call fcn.004f1fc0
add esp, 8
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
lea eax, [ebx + 4]
push eax
push 0
mov dword [esi], 0xb6c
call dword [esp + 0x3c]
test eax, eax
je 0x49b399
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49b399
push 0xff
lea edx, [esp + 0x5c]
push edx
push eax
call ecx
push 0
push str.RAS_Error
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5f3204], 0
call ebx
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x49b4c2
lea eax, [esi + 0x1b]
lea edx, [esp + 0x27d]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x49b3a5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push str.RasDialA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], 0x1c
mov dword [0x5f3204], 4
je 0x49b464
push 0x5f4b04
push 0x49ae10
push esi
lea edx, [esp + 0x184]
push edx
push esi
lea ecx, [esp + 0x40]
push ecx
call eax
cmp eax, esi
je 0x49b448
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x49b448
push 0xff
lea edx, [esp + 0x5c]
push edx
push eax
call ecx
push esi
push str.RAS_Error
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x5f4b04], esi
mov dword [0x5f3204], esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
push ebx
mov dword [0x5f3204], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call ebx
push edi
call ebx
mov dword [0x5f4b04], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
push ebx
mov dword [0x5f3204], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x14]
push edx
jmp 0x49b4c2
push ebx
mov dword [0x5f3204], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push edi
call esi
mov ecx, dword [esp + 0x5a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret