Function at 0x59dd3f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013260
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [reloc.RASAPI32.dll_RasDialA]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x7c]
mov dword [eax], 0
call fcn.005a113f
mov edx, dword [reloc.RASAPI32.dll_RasDialA]
mov eax, dword [edx + 0xc]
mov ecx, 0x1001911c
mov dword [ebp - 4], 0
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [reloc.RASAPI32.dll_RasDialA]
mov eax, dword [edx + 0xc]
mov ecx, 0x1001911c
mov byte [ebp - 4], 1
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [reloc.RASAPI32.dll_RasDialA]
lea edi, [esi + 4]
push edi
mov dword [ebp - 0x24], edi
call ebx
mov dword [ebp - 0x20], 1
mov ecx, dword [esi + 0x30]
cmp dword [ecx - 0xc], 0
mov byte [ebp - 4], 3
push edi
jne 0x59de49
call dword [0x100140bc]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x59ddfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59de21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], reloc.RASAPI32.dll_RasDialA
call fcn.005a117f
mov eax, 0xfffffc0f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call dword [0x100140bc]
push 1
mov ecx, esi
mov dword [ebp - 0x20], 0
call fcn.0059ca8f
test eax, eax
je 0x59ded1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59de86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59dea9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], reloc.RASAPI32.dll_RasDialA
call fcn.005a117f
mov eax, 0xfffffc0c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
call ebx
lea ecx, [esi + 0x20]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 1
call fcn.0059bc2f
mov eax, dword [esi + 0x30]
push 1
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov ebx, esp
push eax
call fcn.0059b5bf
lea edx, [ebp - 0x1c]
add esp, 4
add eax, 0x10
push edx
mov dword [ebx], eax
call fcn.0059bf9f
add esp, 8
mov eax, dword [eax]
push eax
push 0x100145c4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.005a140f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59df46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x28]
push 1
push eax
push 0x100143dc
lea ecx, [ebp - 0x7c]
call fcn.005a140f
mov eax, dword [esi + 0x34]
push 1
push eax
push 0x100145b8
lea ecx, [ebp - 0x7c]
call fcn.005a140f
push 1
push 0x100145b0
push 0x100145a0
lea ecx, [ebp - 0x7c]
call fcn.005a140f
push 0x17
push 0x10014570
lea ecx, [ebp - 0x14]
call fcn.0059bd1f
mov ecx, dword [ebp + 0x14]
push 1
push ecx
lea edx, [ebp - 0x10]
push 0x100142f0
push edx
call fcn.0059bf7f
mov ebx, dword [ebp - 0x10]
add esp, 0x10
push 1
push ebx
push 0x10014564
lea ecx, [ebp - 0x7c]
call fcn.005a140f
mov eax, dword [esi + 0x44]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x6c]
call fcn.0059c62f
test al, al
jne 0x59dfd5
push 0x8007000e
call fcn.0059ae9f
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
mov eax, dword [ebp - 0x6c]
push ecx
push edx
push eax
call fcn.0059c93f
add esp, 0xc
push edi
call dword [0x100140bc]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push 0x10014560
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x20], 0
call fcn.005a0b5f
mov esi, eax
test esi, esi
je 0x59e02a
lea eax, [ebx - 0x10]
jmp 0x59e10d
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005a3daf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x1c]
add esp, 4
push edx
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.0059ca3f
mov eax, dword [ebp - 0x18]
push eax
call dword [0x1001419c]
mov esi, dword [esi]
test esi, esi
jle 0x59e107
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x59e0a2
push 0x1001455c
push esi
call fcn.005a2cdc
add esp, 8
test eax, eax
je 0x59e0a2
sub eax, esi
sar eax, 1
cmp eax, reloc.RASAPI32.dll_RasDialA
je 0x59e0a2
inc eax
push eax
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0059c2af
mov ecx, dword [ebp + 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.0059bc2f
lea ecx, [ebp + 0x1c]
call fcn.0059b53f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x59e0c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, reloc.RASAPI32.dll_RasDialA
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59e0e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], reloc.RASAPI32.dll_RasDialA
call fcn.005a117f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, reloc.RASAPI32.dll_RasDialA
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59e12a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, reloc.RASAPI32.dll_RasDialA
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59e14a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], reloc.RASAPI32.dll_RasDialA
call fcn.005a117f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c